DmxTemplates class abstract base

dmx's own Mustache engine, offered to the macro dartmacros.render.

A custom macro computes a model no template could work out for itself, then hands that model to a template rather than to a StringBuffer. The driver renders it with the engine, the standalone-tag handling, and the whitespace normalizer the built-in catalogue goes through, so a project's own macro and a built-in lay their output out by exactly the same rules — and the template stays a file someone can edit without touching Dart.

Constructors

DmxTemplates()
Const-constructible by implementations.
const

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 template, Map<String, Object?> context, {String name = 'template'}) Future<Result<String, DmxRefusal>>
template rendered against context, or a refusal explaining why not.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited