Class: Smithy::Liquid::Database
- Inherits:
-
Object
- Object
- Smithy::Liquid::Database
- Defined in:
- lib/smithy/liquid/database.rb
Instance Method Summary collapse
Instance Method Details
#read_template_file(template_path, context) ⇒ Object
4 5 6 7 8 |
# File 'lib/smithy/liquid/database.rb', line 4 def read_template_file(template_path, context) _include = Smithy::Template.partials.where(:name => template_path).first raise ActiveRecord::RecordNotFound, "No such template '#{template_path}'" unless _include.present? Smithy::AssetLink.fix(_include.content) end |