Creates a new templater instance.
Renders a template string with the provided data.
This method takes a template containing placeholders and a data object, and returns the rendered string with all placeholders replaced.
The template string to render.
Key-value pairs for variable substitution.
The rendered string.
TemplaterError If template rendering fails.
StaticregisterRegisters the templater as a singleton in the DI container.
The DI container to register in.
Eta-based templater implementation.
Uses the lightweight and fast Eta template engine as the backend.
See
https://eta.js.org - Eta template engine documentation
Example