MustacheTemplateEngine class

A template engine that uses the Mustache templating language.

This engine uses the mustache_template package to render Mustache templates.

Implemented types

Constructors

MustacheTemplateEngine({String delimiters = '{{ }}', String partialsRoot = 'content/_partials/', Object? prepareValues(Page page, List<Page> pages) = _defaultPrepareValues})
const

Properties

delimiters String
final
hashCode int
The hash code for this object.
no setterinherited
partialsRoot String
final
prepareValues Object? Function(Page page, List<Page> pages)
final
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(Page page, List<Page> pages) Future<void>
Renders the given page's content. The content is modified in place.
override
toString() String
A string representation of this object.
inherited

Operators

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