JJ class

Helper class for Jinja tags With this class, you can create Jinja tags easily. Usage: JJ.$include('template.html') JJ.$var('variable_name') JJ.$if('condition', then: JJ.$var('then_var'), otherwise: JJ.$var('else_var')) JJ.$for(item: 'item', inList: 'items', body: JJ.$var('item')) etc.

Constructors

JJ.new()

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
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

$comment(String content) Tag
$for({required String item, required String inList, List<Tag> body = const []}) Tag
$if(String condition, {List<Tag> then = const [], List<Tag> otherwise = const []}) Tag
$include(String template) Tag
$shortIf(String condition, String then, [String otherwise = '']) Tag
$var(String name) Tag