Class: Archangel::DesignRenderService
- Inherits:
-
RenderService
- Object
- RenderService
- Archangel::DesignRenderService
- Defined in:
- app/services/archangel/design_render_service.rb
Overview
Template Liquid render service
Instance Attribute Summary
Attributes inherited from RenderService
#assigns, #local_filters, #local_registers, #template
Instance Method Summary collapse
-
#call ⇒ String
Render the Liquid content for template.
Methods inherited from RenderService
Constructor Details
This class inherits a constructor from Archangel::RenderService
Instance Method Details
#call ⇒ String
Render the Liquid content for template
13 14 15 16 17 18 |
# File 'app/services/archangel/design_render_service.rb', line 13 def call template_content = build_template(template) liquid = ::Liquid::Template.parse(template_content) liquid.send(:render, stringify_assigns, ) end |