Class Renderer
Renders a target or an array of options.
Methods summary
public
__construct( ICanBoogie\Render\TemplateResolver $template_resolver, ICanBoogie\Render\EngineCollection $engines )
public
resolve_template( string $name )
: string
Resolve a template pathname from its name and type.
public
render( mixed $target_or_options, array $additional_options = [] )
: string
Renders a target or options.
protected
render_partial( string $template, mixed $content, array $variables )
: string
Renders partial.
protected
render_template( string $name, string $content, array $variables )
: string
Renders template.
protected
resolve_template_name( mixed $content )
: ICanBoogie\Render\TemplateName
Resolves template name.