Class: Gumbo::LiquidFile
- Inherits:
-
TemplateFile
- Object
- AssetFile
- TemplateFile
- Gumbo::LiquidFile
- Defined in:
- lib/gumbo/liquid_file.rb
Defined Under Namespace
Classes: AssetPackageTag
Instance Attribute Summary
Attributes inherited from AssetFile
#context, #name, #output_dir, #source_dir
Instance Method Summary collapse
Methods inherited from TemplateFile
Methods inherited from AssetFile
#build, class_for, #eql?, ext, for, #hash, #initialize, #logger, #output_file, #replace_ext, #should_be_rebuilt?, #source_file
Constructor Details
This class inherits a constructor from Gumbo::AssetFile
Instance Method Details
#parse(src) ⇒ Object
7 8 9 |
# File 'lib/gumbo/liquid_file.rb', line 7 def parse(src) @template = Liquid::Template.parse(src) end |
#render(context) ⇒ Object
11 12 13 |
# File 'lib/gumbo/liquid_file.rb', line 11 def render(context) @template.render(context) end |