Module: Coradoc::Html::Converters::TemplateHelpers
- Defined in:
- lib/coradoc/html/converters/template_html_converter.rb
Overview
Helper module for rendering CoreModel elements using templates
Instance Method Summary collapse
-
#render_with_templates(element, template_paths: [], **options) ⇒ String
Render a CoreModel element using templates.
Instance Method Details
#render_with_templates(element, template_paths: [], **options) ⇒ String
Render a CoreModel element using templates
95 96 97 98 99 100 101 |
# File 'lib/coradoc/html/converters/template_html_converter.rb', line 95 def render_with_templates(element, template_paths: [], **) renderer = Coradoc::Html::TemplateRenderer.new( template_paths: template_paths, options: ) renderer.render(element) end |