a Sensio Labs Product

The flexible, fast, and secure
template language for PHP

Twig 0.9.4 released

Twig 0.9.4 has just been released.

If you have custom loaders, you MUST upgrade them for this release: The Twig_Loader base class has been removed, and the Twig_LoaderInterface has also been changed (see the source code for more information or the online documentation, which has been updated).

The complete changelog reads as follow:

  • added support for DateTime instances for the date filter
  • fixed loop.last when the array only has one item
  • made it possible to insert newlines in tag and variable blocks
  • fixed a bug when a literal ‘\n’ were present in a template text
  • fixed bug when the filename of a template contains */
  • refactored loaders
This website is powered by PHP and Twig.