jinja 0.0.8 copy "jinja: ^0.0.8" to clipboard
jinja: ^0.0.8 copied to clipboard

outdated

Jinja2 server-side template engine for Dart. Variables, expressions, control structures and template inheritance.

Pub Build Status

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
    • length
    • count
    • string
    • escape, e
    • forceescape
    • upper
    • lower
    • capitalize
    • dictsort
    • default
    • d
    • join
    • center
    • first
    • last
    • random
    • filesizeformat
    • int
    • float
    • abs
    • trim
    • batch
    • sum
    • list
    • attr
  • 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)
32
likes
0
pub points
87%
popularity

Publisher

unverified uploader

Jinja2 server-side template engine for Dart. Variables, expressions, control structures and template inheritance.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

path, petitparser, string_scanner

More

Packages that depend on jinja