Plombir::Template::EngineV0
Constants
MAX_NESTING_DEPTH = 10
Guards cyclic partials (a → B → a → …). Chains this deep
are always a cycle; the diagnostic names the whole chain.
Class methods
render(template : String, context : Context, file : String = "<input>", includes : Partials = Partials.new, components : Components = Components.new, assets : Hash(String, String) = {} of String => String) : String
Renders template with context (usually built by
Plombir::Renderer::Page). Structure problems raise
Template::Error out of the lexer or parser. assets is the
fingerprinted-asset manifest for | asset_url (empty means
every path falls back to its /assets/… form).
EngineV0.render("<h1>{{ title }}</h1>", {"title" => "Hi"}) # => "<h1>Hi</h1>"