Revision history for Template::Sluz
0.9.4 2026-06-24
- New escape modifier for HTML-encoding unsafe characters
- New auto-escape mode (auto_escape => 1) with |noescape bypass
- Alternate delimiter support via set_delimiters('<', '>')
- Performance: ~60%+ speedup via caching and inlining
- Test suite reorganized into per-feature files
- Documentation for set_delimiters added
0.9.1 2025-01-01
- Initial release
- Port of PHP sluz templating engine (Smarty-like syntax)
- Zero CPAN dependencies, requires Perl 5.16+
- Core features:
* Variable substitution {$var} with dot-notation ({$cust.first})
* Modifiers with pipes ({$var|strtoupper|substr:0,3})
* Default values via |default:"val"
* Custom modifier functions and expression blocks
* {if}/{elseif}/{else}/{/if} conditionals
* {foreach} with $__FOREACH_FIRST/LAST/INDEX
* {include} with variable passing
* {literal} blocks and {* comments *}
* Parent/child template inheritance
* PHP-compatible bracket syntax for arrays/hashes