Method: Liquid::LocalFileSystem#read_template_file
- Defined in:
- lib/liquid/file_system.rb
#read_template_file(template_path) ⇒ Object
41 42 43 44 45 46 |
# File 'lib/liquid/file_system.rb', line 41 def read_template_file(template_path) full_path = full_path(template_path) raise FileSystemError, "No such template '#{template_path}'" unless File.exists?(full_path) File.read(full_path) end |