Skip to content

Releases: nette/latte

Released version 2.9.3

24 Feb 12:42
@dg dg
Compare
Choose a tag to compare
  • {capture} creates Html object only in HTML-TEXT context
  • {_translate} & {capture} passes full content-type to FilterInfo
  • {block|filter} passes full content-type to FilterInfo
  • Policy::createSafePolicy() added new function
  • Filters: escapes JS binding {{ }}
  • allows {else} in {first}, {last}, {sep} #247
  • BlockMacros: removed empty line after {define} #251
  • {embed}: reimplemented, creates new block layers dynamically, uses stack

Released version 2.7.3

24 Feb 12:29
@dg dg
Compare
Choose a tag to compare
  • {capture} creates Html object only in HTML-TEXT context
  • {_translate} & {capture} passes full content-type to FilterInfo
  • {block|filter} passes full content-type to FilterInfo
  • Filters: escapes JS binding {{ }}

Released version 2.6.3

24 Feb 12:26
@dg dg
Compare
Choose a tag to compare
  • {capture} creates Html object only in HTML-TEXT context
  • {_translate} & {capture} passes full content-type to FilterInfo
  • {block|filter} passes full content-type to FilterInfo
  • Filters: escapes JS binding {{ }}

Released version 2.5.6

24 Feb 12:23
@dg dg
Compare
Choose a tag to compare
  • {capture} creates Html object only in HTML-TEXT context
  • {_translate} & {capture} passes full content-type to FilterInfo
  • {block|filter} passes full content-type to FilterInfo
  • Filters: escapes JS binding {{ }}

Released version 2.4.9

01 Dec 11:55
@dg dg
Compare
Choose a tag to compare

compatibility with PHP 8

(Branch 2.4 is no longer supported)

Released version 2.10.3

22 Feb 11:25
@dg dg
Compare
Choose a tag to compare
  • {embed}: outer variables are promoted inside {block}
  • {embed}: reimplemented, creates new block layers dynamically, uses stack
  • Policy::createSafePolicy() added new filters and tags
  • Filters: |sort accepts only Closure for security reasons
  • Template::render() restores output buffer #260
  • LattePanel: added option to disable parameters dumping #259
  • {capture} creates Html object only in HTML-TEXT context (BC break)
  • {_translate} & {capture} passes full content-type to FilterInfo (BC break)
  • {block|filter} passes full content-type to FilterInfo (BC break)

Released version 2.10.2

24 Feb 12:12
@dg dg
Compare
Choose a tag to compare
  • utilization of function inlining
  • |replace improved, accepts associative array as $search
  • |sort accepts callback
  • |sort maintains index association
  • added filters & functions: even(), odd(), divisibleBy(), first(), last(), |join, |slice, |round, |floor, |ceil, |explode, |split, |random, |spaceless
  • filter |query accepts with string
  • Filters: escapes JS binding {{ }}
  • improved detection of unexpected assignments {include $var = ...} [Closes #258]
  • added more comments /* line */

Released version 2.10.1

26 Jan 13:19
@dg dg
Compare
Choose a tag to compare
  • added {iterateWhile}
  • added {trace}
  • added Tracy bridge
  • added filter |query
  • added PHP attributes Latte\Attributes\TemplateFunction & TemplateFilter
  • added n:tag [Closes #248]
  • implemented {embed block}
  • added short array syntax [key: value]
  • Engine: added addFilterLoader(), replacement for addFilter(null)
  • warnings converted to exceptions (BC break)
  • added phpDoc comments to block methods
  • PhpWriter: added placeholder %node.line
  • BlueScreenPanel: add check for nullable $e->sourceName (#254)

Released version 2.9.2

16 Dec 23:47
@dg dg
Compare
Choose a tag to compare
  • added {parameters}
  • detects unexpected assignments {include $var = ...}
  • PhpWriter::quotingPass() supports named arguments without parentheses
  • internal variables are prefixed $ʟ_
  • Fixes variables promotion after ce2b118 comments in #178
  • Defaults: better info when mbstring extension or nette/utils are missing #244
  • SnippetDriver: dynamic snippets runtime check

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

Released version 2.8.4

16 Dec 22:37
@dg dg
Compare
Choose a tag to compare
  • internal variables are prefixed $ʟ_
  • Compiler: improved code indentation
  • BlockMacros: "extends check" skipped for nested blocks #227
  • Template::render() removed dead code after 5972e72
  • PhpHelpers::reformatCode() appends correctly semicolon after '${""}'
  • CoreMacros: fixed regexp

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