TemplateEngine class abstract

Implementers

Constructors

TemplateEngine()

Properties

filterMap Map<String, Function>
no setter
funcMap Map<String, Function>
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addFilter(String name, Function filter) → void
addFunc(String name, Function fn) → void
loadTemplates(String path) → void
Loads templates from the specified path.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
render(String templateName, [Map<String, dynamic> data = const {}]) Future<String>
Renders a template with the given name using the provided data.
renderContent(String content, [Map<String, dynamic> data = const {}]) String
toString() String
A string representation of this object.
inherited

Operators

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