handlebars_dart 1.0.0
handlebars_dart: ^1.0.0 copied to clipboard
A pure Dart implementation of Handlebars template engine.
Changelog #
All notable changes to handlebars_dart will be documented in this file.
1.0.0 - 2026-08-13 #
Added #
- First stable release of the pure-Dart Handlebars template engine.
- Variable substitution with dot and slash path access, parent context (
../), and thethis/.current-context reference. - HTML escaping by default, with unescaped output via
{{{ }}},{{& }}, andSafeString. - Built-in block helpers:
if,unless,each,with, including{{else}}and inverse ({{^}}) sections. - Iteration data variables
@index,@key,@first,@last,@root, and block parameters (as |item index|). - Custom helpers with positional and hash arguments, block helpers with
fnandinversecallbacks, and subexpressions. - Built-in
lookupandloghelpers. - Partials, partial blocks (
{{#> }}), and inline partials ({{#*inline}}). - Comments (
{{! }}and{{!-- --}}), literals, raw blocks ({{{{raw}}}}), whitespace control ({{~ ~}}), and the\{{escape sequence. - Strict mode that throws
StrictModeExceptionon undefined variables.
Changed #
- The ANTLR4-based parser and its generated grammar are now test-only. The
published library ships the hand-written parser exclusively and no longer
depends on the
antlr4runtime.