Releases: nette/latte
Releases · nette/latte
Released version 3.0.0
Brand new completely rewritten parser and compiler. Parses to AST nodes and then compiles to PHP.
Released version 2.11.3
SecurityPolicy::allowMacros()
is deprecated, useallowTags()
- Notice: Engine::addFilter(null, ...) is deprecated, use
addFilterLoader()
PhpWriter::formatWord()
accepts PascalCase class constants- Notice: missing
</script>
or</style>
- Case sensitive filter |checkUrl
- Linter: add class Latte\Tools\Linter #286
- BlueScreenPanel: fixed compatibility with Tracy 2.9
Released version 2.11.2
- improved error messages
- linter: added option --debug
- linter: added line for notices
- Revert "Tag name is [a-z][\w-]+"
Released version 2.11.1
This version is for easy transition to the upcoming Latte 3. It notes all deprecated things that will be removed in the next version.
- Case sensitive filters: notice when case does not match
- Notice: Filter |noescape should be placed at the very end in modifier
- sandbox: operator new is forbidden in {var} & {parameters}
- Notice: Change {include "inc"} to {include file "inc"} for clarity
- Notice: expressions like {block foo-$var} should be put in double quotes
- n-ifcontent on empty element in deprecated
Template::getParameter()
is deprecated- added {translate} as pair replacement for {_}
Released version 2.11.0
This version is for easy transition to the upcoming Latte 3. It notes all deprecated things that will be removed in the next version.
- throws exception when template contains control characters
- removed support for deprecated optional chaing expressions like
$foo->prop?
or$foo->call()?
- empty closing tag {/} is deprecated
- Colons as argument separator in modifiers are deprecated, ie replace
{$foo|filter:1:2:3}
with{$foo|filter:1, 2, 3}
- Auto-empty is deprecated (it affects
{label}
, must be written as{label /}
or pair{label}...{/label}
- Filters::escapeJS: invalid UTF-8 is replaced with Unicode Replacement Character U+FFFD (instead of throwing exception)
- Template: removed old accumulators $_l, $_g (deprecated in 2.4, BC break)
- Tag name cannot start with ?
- n:tag- & n:inner- is deprecated on void elements
- deprecated n:inner-snippet
- {includeblock} is deprecated
- Auto-empty is deprecated
- allow use of text/plain for script tag (#282)
Released version 2.10.9
- added & improved tests
- Compiler: checks macro is not in quotes in JS even with |noescape
- Engine: in sandboxed mode is policy mandatory
- CompileException: added line number
- Revert "TokenIterator: fixes, sync with nette/tokenizer"
implode()
with 2 arguments- output buffering uses try/finally
PhpHelpers::reformatCode()
places elseif/catch/finally after }PhpHelpers::reformatCode()
refactoring $next{try}
and{else}
are not replaced
Released version 2.10.8
This is a security release.
- complex expressions in strings are prohibited in sandbox mode
Released version 2.9.6 (EOL)
This is a security release. Branch 2.9 is no longer supported
- complex expressions in strings are prohibited in sandbox mode
- cs
Released version 2.9.5
This is a security release.
- Parser: removes all control characters from template [Closes #279]
- PhpWriter::removeCommentsPass() replaces comment with space to prevent unwanted result
- isNext() a isPrev() called with SIGNIFICANT
Released version 2.8.8 (EOL)
This is a security release. Branch 2.8 is no longer supported
- complex expressions in strings are prohibited in sandbox mode
- cs