jinja 0.0.7+1
jinja: ^0.0.7+1 copied to clipboard
Jinja2 server-side template engine for Dart. Variables, expressions, control structures and template inheritance.
Jinja 2 server-side template engine port for Dart 2. Variables, expressions, control structures and template inheritance.
Draft
All variables passed to the template and literals used in the template are dart objects with their own fields and methods.
To Do #
- Compile templates to fast Dart code
- Docs
- Informative error output
- Full test coverage
- Add missing filters
- Loaders
- PackageLoader
- FunctionLoader
- PrefixLoader
- ChoiceLoader
- Whitespace Control
- Escaping
- Line Statements
- Statements
- Macro
- Set Block
- Call
- Filter
- Template Inheritance
- Include
- Import
- Expressions
- ... if ... else ... condition expression
- ~ concat
Done #
- Loaders
- FileSystemLoader
- MapLoader (DictLoader)
- Variables
- Filters
- abs
- attr
- batch
- default
- e,escape
- join
- list
- lower
- sublist
- sum
- Tests
- Comments
- Statements
- For (not full covered)
- If
- Set (one variable statement)
- Template Inheritance (not covered)
- Extends
- Block
- Super
- Expressions
- Literals
- Math
- Comparison
- Logic
- in
- is tests
- | filters
- () call callable
- (*iter) call callable
- ./[] object attribute (. for field, [] for map)