jinja 0.4.0-dev.30
jinja: ^0.4.0-dev.30 copied to clipboard
Jinja2 server-side template engine for Dart. Variables, expressions, control structures and template inheritance.
0.4.0-dev.30 #
- remove
Undefined
andmissing
- remove slices and negative indexes
- remove dynamic template imports, only single constant template path/name
Environment.copyWith
renamed toEnvironment.overlay
- remove dynamic
Template.render
method Template.renderMap
renamed toTemplate.render
Loader.listSources
renamed toLoader.listTemplates
FileSystemLoader
moved frompackage:jinja/jinja.dart
topackage:jinja/loaders.dart
- new statements:
do
with
- add
print
to globals - refactoring
- work in progress
0.3.4 #
- variables can be written with the
_
character - internal changes
0.3.3 #
- replace
pedantic
withlints
package
0.3.2 #
- remove forgotten print
0.3.1 #
- add
FileSystemLoader
autoload filtering
0.3.0 #
- migrate to null safety
- minimal SDK version: 2.12.0
- add
math.Random
random
field toEnvironment
andTemplate
classes - add
encoding
parameter toFileSystemLoader
constructor - add loader tests
- template:
- change
Template.parsed
constructor definition toTemplate.parsed(this.env, this.body, [this.path])
- change
- internal fixes
0.2.3 #
- access map values by field expression
map.key
0.2.2 #
- default
Environment.getField
returnsnull
- fix list index
0.2.1 #
- add pedantic, format
0.2.0 #
- minimal SDK version: 2.7.0
- add
package:jinja/get_field.dart
- remove
package:jinja/filters.dart
- remove
package:jinja/tests.dart
- environment:
getField
andgetItem
methodsleftStripBlock
andkeepTrailingNewLine
fields
- field and method calling expressions that used mirrors now uses
Environment.getField
method
default getField throws runtime error, to use field expression based on reflection import and pass to environmentgetField
method frompackage:jinja/get_field.dart
, or write custom method based on code generation - filters:
- add environment filters:
- batch
- filesizeformat
- add environment filters:
- more package tests
0.1.2 #
- fix example
0.1.1 #
- fix template blocks ref
0.1.0 #
- little speed up
- new statements:
- filter
- set
- raw
- add namespace
- environment
- add leftStrip and trimBlocks
- add extensions (can change)
- rename:
stmtOpen
toblockStart
stmtClose
toblockEnd
varOpen
tovariableStart
varClose
tovariableEnd
commentOpen
tocommentStart
commentClose
tocommentEnd
- move
autoReload
toFileSystemLoader
- remove
getFilter
andgetTest
- update context and parser
- parser:
- parsing *args, **kwargs in calls (not in filters and tests)
- custom tags support
- context
- template:
- update render function:
render(kv1: ..., kv2: ...)
callsrenderMap({'kv1': ..., 'kv2': ...})
- add
self
andself.blockName
callback ref
- update render function:
- removed filters:
- batch
- filesizeformat
0.0.8+1 #
- fixes
0.0.8 #
- add and update filters
- update escaping
- update package tests
- formatting & fixes
0.0.7+1 #
- set (one variable assign statement)
- recursive For-Loop
- unpacking argument expression
- formatting & fixes
0.0.7 #
- add global namespace to env and update context
- add all missing builtin tests
- fix expression group parsing
- update package tests
- formatting & fixes
0.0.6 #
- add undefined & env.finalize
- add and switch to env call template, filter, test methods
- add is and in expressions
- add sum filter
- formatting & fixes
0.0.5 #
- add batch and escape filters
- template and context required env
- environment fromSource can store template
- formatting & fixes
0.0.4 #
- add test for for-loop & if-condition
- add defined filter
- immutable context
- little docs
- formatting & fixes
0.0.3 #
- fixes & formatting
- more filters & tests, package tests
0.0.2 #
- fixes & formatting
0.0.1 #
- base statements, variables, inheritance, filters & tests and example