Skip to content

Releases: nette/latte

Released version 2.6.2

23 Feb 15:28
@dg dg
Compare
Choose a tag to compare
  • 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

14 Jan 22:38
@dg dg
Compare
Choose a tag to compare
  • fixed bugs
  • Filters::safeUrl() accepts tel: and sms: #203
  • Filters: in HTML/XML invalid UTF-8 is replaced with Unicode Replacement Character U+FFFD (instead of discarding whole output)
  • Filters: escapes and decodes ' as '

For the details you can have a look at the diff.

Released version 2.6.0

03 Jan 19:29
@dg dg
Compare
Choose a tag to compare
  • 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

24 Sep 10:51
@dg dg
Compare
Choose a tag to compare
  • Revert "BlockMacros: {define} accepts named parameters" #198 #194 #197
  • BlockMacros: block name must not start with underscore #193
  • Fix compatibility with PHP 7.4 (#199)
  • phpdoc fixes

For the details you can have a look at the diff.

Released version 2.5.2

16 Jul 16:17
@dg dg
Compare
Choose a tag to compare
  • 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

20 Feb 09:43
@dg dg
Compare
Choose a tag to compare

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

03 Jun 17:34
@dg dg
Compare
Choose a tag to compare
  • Parser: tag name can contains : _ . - #179
  • Compiler: added 'did you mean' suggestion for n:attributes
  • Compiler: fixed error when there is no macro (#177)
  • coding style

For the details you can have a look at the diff.

Released version 2.4.7

06 Feb 14:44
@dg dg
Compare
Choose a tag to compare

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.

Released version 2.4.6

29 Aug 08:25
@dg dg
Compare
Choose a tag to compare
  • supports PHP up to 7.2
  • Engine: better error message when is unable to create file
  • Engine: throws exception when is unable to create directory
  • Parser: expands <script /> to <script></script> #164
  • added |webalize (requires nette/utils)
  • added |reverse

For the details you can have a look at the diff.

Released version 2.4.5

14 Jul 07:43
@dg dg
Compare
Choose a tag to compare
  • coding style: fixes, lowercase true/false/null
  • Engine::compile() fixed construction of CompileException, doesn't accept nullable type (#161)

For the details you can have a look at the diff.