jael3 10.0.0
jael3: ^10.0.0 copied to clipboard
A simple server-side HTML templating engine for Dart. Comparable to Blade or Liquid.
Change Log #
10.0.0 #
Breaking changes in 10.0.0 #
- Breaking: No longer uses
dart:mirrors, so a program that renders templates can be compiled withdart compile exe.{{ a.b }}readsbfrom thememberResolvergiven toRenderer.render, aMapkey, a common member of a core type, or the value'stoJson(); other getters need amemberResolverortoJson().angel3_jaelgives one from the app's reflector. See the README - Breaking: Removed
new,NewExpressionandTokenType.$new, which could never be parsed; put a function that makes the value in the scope instead - Breaking: With
strictResolution: false, an unknown member, or a member ofnull, isnull.readMembertakesresolveras a named parameter, and the newtryReadMemberreturnsnoMember - Breaking: Requires
belatuk_code_buffer6 andbelatuk_symbol_table6, whoseCodeBufferandSymbolTableRenderer.rendertakes; the HTML it renders is unchanged
Fixes in 10.0.0 #
- Members:
{{ user.name }}reads the key of aMap.toJson()is called once per value in a render, its own errors are thrown, and one that takes an argument is not called - Null safety:
?.makes the rest of the chainnull, as in Dart - Operators:
%works;&&and||are added, and like??compute their right side only if needed;=is no longer an operator - Parsing: Map literals with keys (
{'a': 1}) and calls with named arguments (f(x: 1)) are parsed; a key-value pair's span starts at its key, andSyntheticIdentifier.spanworks - Rendering: The same
SymbolTablecan be rendered again - Docs: The README tells how to install and use the package, and how to migrate from 9.x
9.1.0 #
- Require Dart >= 3.13
9.0.0 #
- Require Dart >= 3.12
8.3.0 #
- Require Dart >= 3.8
- Updated
lintsto 6.0.0 - Updated dependencies to the latest release
8.2.0 #
- Require Dart >= 3.3
- Updated
lintsto 4.0.0
8.1.1 #
- Updated repository link
8.1.0 #
- Updated
lintsto 3.0.0 - Fixed linter warnings
8.0.0 #
- Require Dart >= 3.0
7.0.0 #
- Require Dart >= 2.17
6.0.1 #
- Fixed analyze errors
6.0.0 #
- Require Dart >= 2.16
5.0.0 #
- Skipped release
4.2.0 #
- Updated to use
package:belatuk_code_buffer
4.1.0 #
- Updated to use
package:belatuk_symbol_table - Updated linter to
package:lints
4.0.0 #
- Migrated to support Dart >= 2.12 NNBD
3.0.0 #
- Migrated to work with Dart >= 2.12 Non NNBD
2.0.2 #
- Fixed handling of
ifin non-strict mode. - Roll
JaelFormatterandjaelfmt.
2.0.1 #
- Fixed bug where the
textareaname check would never returntrue.
2.0.0+1 #
- Meta-update for Pub score.
2.0.0 #
- Dart 2 updates.
- Remove usage of
package:dart2_constant.
1.0.6+1 #
- Ensure
<element>passes attributes.
1.0.6 #
- Add
index-astofor-each. - Support registering + rendering custom elements.
- Improve handling of booleans in non-strict mode.
1.0.5 #
- Add support for DSX, a port of JSX to Dart.
1.0.4 #
- Skip HTML comments in free text.
1.0.3 #
- Fix a scanner bug that prevented proper parsing of HTML nodes followed by free text.
- Don't trim
<textarea>content.
1.0.2 #
- Use
package:dart2_constant. - Upgrade
package:symbol_table. - Added
Renderer.errorDocument.
1.0.1 #
- Reworked the scanner; thereby fixing an extremely pesky bug that prevented successful parsing of Jael files containing JavaScript.