jinja 0.4.0-dev.53 copy "jinja: ^0.4.0-dev.53" to clipboard
jinja: ^0.4.0-dev.53 copied to clipboard

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

0.4.0-dev.53 #

  • minimal SDK version: 2.18.0
  • added:
    • PassArgument, passContext and passEnvironment ...
    • print to globals: {{ do print(name) }}
    • Environment
      • Environment({lineCommentPrefix, lineStatementPrefix, newLine, autoReload, modifiers, templates}) constructor arguments
      • autoReload field
      • lexer field
      • lineCommentPrefix field
      • lineStatementPrefix field
      • loader field
      • modifiers field
      • newLine field
      • lex method
      • listTemplates method
      • parse method
      • scan method
    • Template
      • Template({path, lineCommentPrefix, lineStatementPrefix, newLine, modifiers, templates}) constructor arguments
      • generate method
    • formatPath function to normalize template paths
    • FileSystemLoader.findFile method
    • exceptions are public now:
      • TemplateError
      • TemplateSyntaxError
      • TemplateAssertionError
      • TemplateNotFound
      • TemplatesNotFound
      • TemplateRuntimeError
    • statements:
      • do
      • with
    • filters:
      • dictsort
      • replace
      • reverse
      • safe
      • slice
      • striptags
      • truncate
      • wordcount
      • wordwrap
      • item
    • filters, tests and runtime library
  • changed:
    • FieldGetter typedef renamed to AttributeGetter
    • mapping test renamed to map
    • default filter compare values with null
    • defined and undefined tests compare values with null
    • Environment
      • Environment({getField}) constructor argument renamed to getAttribute
      • getField field renamed to getAttribute
    • Template
      • Template({parent}) constructor argument renamed to environment and doesn't copy the environment
      • renderMap method renamed to render
    • Loader.listSources method renamed to listTemplates
    • MapLoader.mapping field renamed to sources
    • FileSystemLoader
      • FileSystemLoader({path}) constructor argument is nullable now
      • moved to package:jinja/loaders.dart library
    • package:jinja/get_field.dart library renamed to package:jinja/reflection.dart
    • getField function renamed to getAttribute
  • removed:
    • Undefined type and missing object
    • Environment.undefined method
    • Template.render method
    • FileSystemLoader:
      • FileSystemLoader({bool autoReload}) constructor argument
      • autoReload field
      • directory field
    • slices and negative indexes
    • conditional and variable extends statement variants
    • choice, ignore missing and variable include statement variants
  • internal changes
  • work in progress
32
likes
0
pub points
86%
popularity

Publisher

unverified uploader

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

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

meta, path, string_scanner, textwrap

More

Packages that depend on jinja