jinja 0.4.0-dev.24
jinja: ^0.4.0-dev.24 copied to clipboard
Jinja2 server-side template engine for Dart. Variables, expressions, control structures and template inheritance.
0.4.0-dev.24 #
- no
Undefinedandmissing - no slices and negative indexes
- no dynamic template imports, only single constant template path/name
Environment.copyWithrenamed toEnvironment.overlayTemplate.rendernow acceptsMap<String, Object?>- no
Template.renderMap Loader.listSourcesrenamed toLoader.listTemplatesFileSystemLoadermoved frompackage:jinja/jinja.darttopackage:jinja/loaders.dart- new statements:
dowith
- add
printto globals - refactoring
- work in progress
0.3.4 #
- variables can be written with the
_character - internal changes
0.3.3 #
- replace
pedanticwithlintspackage
0.3.2 #
- remove forgotten print
0.3.1 #
- add
FileSystemLoaderautoload filtering
0.3.0 #
- migrate to null safety
- minimal SDK version: 2.12.0
- add
math.Randomrandomfield toEnvironmentandTemplateclasses - add
encodingparameter toFileSystemLoaderconstructor - add loader tests
- template:
- change
Template.parsedconstructor 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.getFieldreturnsnull - 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:
getFieldandgetItemmethodsleftStripBlockandkeepTrailingNewLinefields
- field and method calling expressions that used mirrors now uses
Environment.getFieldmethod
default getField throws runtime error, to use field expression based on reflection import and pass to environmentgetFieldmethod 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:
stmtOpentoblockStartstmtClosetoblockEndvarOpentovariableStartvarClosetovariableEndcommentOpentocommentStartcommentClosetocommentEnd
- move
autoReloadtoFileSystemLoader - remove
getFilterandgetTest
- 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
selfandself.blockNamecallback 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