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