Method: Liquid::LocalFileSystem#read_template_file
- Defined in:
- lib/liquid/file_system.rb
#read_template_file(template_path) ⇒ Object
54 55 56 57 58 59 |
# File 'lib/liquid/file_system.rb', line 54 def read_template_file(template_path) full_path = full_path(template_path) raise FileSystemError, "No such template '#{template_path}'" unless File.exist?(full_path) File.read(full_path) end |