Method: Monograph::Book#template_file

Defined in:
lib/monograph/book.rb

#template_file(name) ⇒ Object



34
35
36
37
38
39
40
41
# File 'lib/monograph/book.rb', line 34

def template_file(name)
  template_path = File.join(@path, name)
  if File.exist?(template_path)
    File.read(template_path)
  else
    File.read(File.join(builtin_template_path, name))
  end
end