Releases: nette/latte
Releases · nette/latte
Released version 2.6.2
- Filters::escapeXml() & escapeIcal: C0 charactes are replaced with Unicode Replacement Character U+FFFD
- optional chaining: disabled for Class::$prop? & $$var?
- custom functions reimplemented
For the details you can have a look at the diff.
Released version 2.6.1
Released version 2.6.0
- added custom functions via
$latte->addFunction()
- Added optional chaining
$var?->prop?->elem[1]?->call()?->item
- Short ternary operator now requires braces around array (for future optional chaining) (BC break)
- PhpWriter: short ternary checks if value exists
- CachingIterator: fixed IteratorAggregate -> Iterator conversion
- BlockMacros: check when dynamic snippet is combined with id attribute [Closes nette/application#242]
- BlockMacros: added $snippetAttribute for custom HTML attribute with snippet id [Closes nette/application#242]
- removed latte.php
Released version 2.5.3
Released version 2.5.2
- FileLoader::
isExpired()
returns true when file doesn't exist #186 - BlockMacros: {define} accepts named parameters #184
- Engine: strict_types not working with no temp directory #191
- Engine::setTempDirectory accepts null
- Filters: removed string type hints from replace filter (#189)
For the details you can have a look at the diff.
Released version 2.5.0
Features
- requires PHP 7.1
- uses declare(strict_types=1)
- uses PHP 7.1 scalar and return type hints
- Engine::setStrictTypes() adds declare(strict_types=1) to templates
- PhpWriter: filters are called using PHP 7 features
- added CachingIterator::__toString() (#175)
Changes
- Compiler: removed deprecated support for inline PHP (BC break)
- removed deprecated stuff
{use} {status} {?...} |safeurl |nl2br shortNoEscape
- HtmlNode, MacroNode: removed $isEmpty (BC break)
- MacroTokens::fetchWord() returns NULL instead of FALSE on error (BC break)
- TokenIterator::expectNextValue() renamed to consumeValue()
Released version 2.4.8
Released version 2.4.7
Please make a donation at https://nette.org/donate
- FileLoader: isExpired called with correct file path (#171)
- Compiler: {$var} can be in quotes in
<style>
- TokenIterator: fixes, sync with nette/tokenizer
For the details you can have a look at the diff.