Renders a named template against a set of values.
dust_server does not implement templating. It ships an adapter over
mustache_template, which is the most used template package on pub, and
this interface so anything else, jinja and liquify included, can be
dropped in without changing a handler.
final class JinjaTemplates implements TemplateEngine {
@override
String render(String name, Map<String, Object?> values) => ...;
}
- Implementers
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
render(
String name, Map< String, Object?> values) → String -
Renders the template called
namewithvalues. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited