Class: Smithy::Template
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Smithy::Template
- Defined in:
- app/models/smithy/template.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.types ⇒ Object
21 22 23 |
# File 'app/models/smithy/template.rb', line 21 def types %w(template include javascript stylesheet) end |
Instance Method Details
#liquid_template ⇒ Object
27 28 29 30 31 |
# File 'app/models/smithy/template.rb', line 27 def liquid_template @liquid_template ||= Rails.cache.fetch("#{self.cache_key}-liquid_template") do ::Liquid::Template.parse(Smithy::AssetLink.fix(self.content)) end end |