Download Latest Version Released version 3.1.6 source code.zip (228.9 kB)
Email in envelope

Get an email when there's a new version of Latte

Home / v3.1.4
Name Modified Size InfoDownloads / Week
Parent folder
README.md 2026-04-23 1.2 kB
Released version 3.1.4 source code.tar.gz 2026-04-23 114.9 kB
Released version 3.1.4 source code.zip 2026-04-23 220.6 kB
Totals: 3 Items   336.7 kB 0
  • Range – a new Latte\Compiler\Range class (extending Position with a length) gives every token and parser node a precise source span instead of just a starting position, unlocking richer tooling and editor integrations
  • StatementNode::$tagRanges – statement nodes now expose exact byte ranges for their opening and closing tags, making it straightforward to map compiled output back to the original template
  • |limit accepts strings – the |limit filter now works on strings too, so you can trim text the same way you slice arrays
  • {dedent} – fixed inline content handling and atLineStart tracking; the logic moved into a dedicated Dedent class with considerably more test coverage (#412, [#413], [#414])
  • PhpHelpers::checkCode()proc_open now uses array syntax for the PHP binary path, so installations where the interpreter lives in a directory with spaces no longer break (#415)
  • TemplateGenerator – stopped emitting the /** source */ comment for multi-line template names, which could produce broken PHP
  • {switch} – a {case} with a single value now compiles to === instead of in_array(), producing faster and cleaner generated PHP
Source: README.md, updated 2026-04-23