a Sensio Labs Product

The flexible, fast, and secure
template language for PHP

Twig 0.9.2 released

I have just released Twig 0.9.2. Lots of great changes occurred for this release:

  • made some speed optimizations
  • changed the cache extension to .php
  • added a js escaping strategy
  • added support for short block tag
  • changed the filter tag to allow chained filters
  • made lexer more flexible as you can now change the default delimiters
  • added set tag
  • changed default directory permission when cache dir does not exist (more secure)
  • added macro support
  • changed filters first optional argument to be a Twig_Environment instance instead of a Twig_Template instance
  • made Twig_Autoloader::autoload() a static method
  • avoid writing template file if an error occurs
  • added $ escaping when outputting raw strings
  • enhanced some error messages to ease debugging
  • fixed empty cache files when the template contains an error
This website is powered by PHP and Twig.