Stubble class

Constructors

Stubble([Map<String, dynamic> options, Map<String, dynamic Function(List, Function)> helpers])

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
helperCount int
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

compile(String template) Function
returns a compiler function that starts StubbleMachine with given template on call
dropHelpers() bool
removes all helpers from Stubble
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
registerHelper(String name, dynamic helper(List, Function)) bool
registers a helper function that can be used in templates. All helpers are available across the all template
removeHelper(String name) bool
removes a helper function with a given name
setOption(String name, dynamic value) → void
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited