Hwaro::Content::Processors::Template
Template processor using Crinja This module provides a singleton-like interface for template processing
Class methods
create_context(page : Models::Page, config : Models::Config) : TemplateContext
Create a context for the given page and config
process(content : String, context : TemplateContext) : String
Process a template string with context
Process a template string with raw variables hash
render_template(template_name : String, context : TemplateContext) : String
Render a named template from the loader