Releases: nette/latte
Releases · nette/latte
Released version 3.0.20
{default}
is evaluated lazily|localDate
respects the time zone set in PHP #380- added
|filter
- FileLoader: fixed path normalization for phar and absolute paths #378
- TagParser: allow trailing comma in |filter(...)
- TranslatorExtension:
translate()
can return \Stringable #372 CachingIterator::__get()
does not return a reference
Released version 3.0.18
- added support for locale, affects
|localDate
,|number
,|bytes
and|sort
filters - {import} supports arguments
- coreParentFinder is called only for main template (BC break)
- support for PHP 8.4
Released version 3.0.16
- added filter
|group
& functiongroup()
- filter
|sort
accepts iterable - filter
|sort
addedby
&byKey
Filters::first()
accepts iterable- Engine: cache-key divided into key and signature, that is stored in a lock file
- Engine: added underscore to template class name
Loader::isExpired()
deprecatedBlueprint::printClass()
rewritten (BC break)
Released version 3.0.14
hasBlock()
fixed template retrieval #357- {contentType}: fixed behavior when used inside
<script>
#356 - n:syntax: restores syntax after </ #358
- added FunctionExecutor for template functions
- n:syntax must not have a prefix
- fixed positions of FilterNode
- TagLexer: typo in regexp nette/application#321
Filters::safeUrl()
: widened supported types- PHP 8.4 compatibility
- refactoring
Released version 3.0.13
- added support for application/ld+json (#353)
- fixed escaping after {contentType xml}
- Filters & Passes: refactoring
- removed Filters::$xml
Released version 3.0.12
- added n:else
- exception handler can throw exception #307
- JumpNode: correctly closes all HTML elements #340
- uses AuxiliaryNode to hide usage of internals #347
- {exitIf} must not be in
prepare()
changes:
- removed variable Tag::$data,
Tag::closestTag()
finds by class name - StaticCallNode renamed to StaticMethodCallNode
- RegexpException replaced with CompileException & RuntimeException
- ExpressionBuilder is deprecated
Released version 2.10.10 (end of support)
support for PHP 8.2, 8.3
Released version 2.11.7 (end of support)
- support for PHP 8.3
Released version 3.0.10
- added function
hasBlock()
#345 Filters::safeUrl()
accepts Stringable- implemented mandatory escaping (cannot be disabled using |noescape)
- In
<script type=unknown>
is HTML not escaped - Improved escaping in
<script type=text/html>
- Escaper: better detection of type in
<script>
&<style>
- FilterExecutor: refactoring, info-aware filter can be dynamic
Filters::strLength()
uses mbstring, iconv and then utf8_decode
Released version 3.0.9
- improved support for variable tags <{$foo}>
- Linter: refactoring, added getEngine()
- TemplateLexer: rewritten that functions are not generators, exceptions are thrown in parsers