CHANGELOG
2ea01af0
 * 0.9.6 (2010-05-12)
29d16d99
 
2e1b12bc
  * fixed variables defined outside a loop and for which the value changes in a for loop
276a3804
  * fixed the test suite for PHP 5.2 and older versions of PHPUnit
79e50586
  * added support for __call() in expression resolution
  * fixed node visiting for macros (macros are now visited by visitors as any other node)
23a8d39d
  * fixed nested block definitions with a parent call (rarely useful but nonetheless supported now)
075f5415
  * added the cycle filter
6b6d5150
  * fixed the Lexer when mbstring.func_overload is used with an mbstring.internal_encoding different from ASCII
029bb5b5
  * added a long-syntax for the set tag ({% set foo %}...{% endset %})
7e8cdd7b
  * unit tests are now powered by PHPUnit
4625d2f8
  * added support for gettext via the `i18n` extension
94151eab
  * fixed twig_capitalize_string_filter() and fixed twig_length_filter() when used with UTF-8 values
  * added a more useful exception if an if tag is not closed properly
6c7d5603
  * added support for escaping strategy in the autoescape tag
11c00dcc
  * fixed lexer when a template has a big chunk of text between/in a block
29d16d99
 
83041be5
 * 0.9.5 (2010-01-20)
ce4670da
 
47d5f85c
 As for any new release, don't forget to remove all cached templates after
 upgrading.
 
215ed486
 If you have defined custom filters, you MUST upgrade them for this release. To
 upgrade, replace "array" with "new Twig_Filter_Function", and replace the
 environment constant by the "needs_environment" option:
 
   // before
   'even'   => array('twig_is_even_filter', false),
   'escape' => array('twig_escape_filter', true),
 
   // after
   'even'   => new Twig_Filter_Function('twig_is_even_filter'),
   'escape' => new Twig_Filter_Function('twig_escape_filter', array('needs_environment' => true)),
 
da590259
 If you have created NodeTransformer classes, you will need to upgrade them to
 the new interface (please note that the interface is not yet considered
 stable).
92d96e2e
 
84bf02bb
  * fixed list nodes that did not extend the Twig_NodeListInterface
83ea0a5e
  * added the "without loop" option to the for tag (it disables the generation of the loop variable)
92d96e2e
  * refactored node transformers to node visitors
  * fixed automatic-escaping for blocks
e2c7b2fa
  * added a way to specify variables to pass to an included template
2f0d54d0
  * changed the automatic-escaping rules to be more sensible and more configurable in custom filters (the documentation lists all the rules)
215ed486
  * improved the filter system to allow object methods to be used as filters
be7245cb
  * changed the Array and String loaders to actually make use of the cache mechanism
1a033bab
  * included the default filter function definitions in the extension class files directly (Core, Escaper)
575ed89d
  * added the // operator (like the floor() PHP function)
2ab4dd5b
  * added the .. operator (as a syntactic sugar for the range filter when the step is 1)
95d5cefd
  * added the in operator (as a syntactic sugar for the in filter)
575ed89d
  * added the following filters in the Core extension: in, range
ee5c9d93
  * added support for arrays (same behavior as in PHP, a mix between lists and dictionaries, arrays and hashes)
  * enhanced some error messages to provide better feedback in case of parsing errors
 
ce4670da
 * 0.9.4 (2009-12-02)
822fb857
 
d3ee1165
 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 documentation).
 
07ca8a79
  * added support for DateTime instances for the date filter
a59e183f
  * fixed loop.last when the array only has one item
2ffcea6c
  * made it possible to insert newlines in tag and variable blocks
cd9ca837
  * fixed a bug when a literal '\n' were present in a template text
d47077ee
  * fixed bug when the filename of a template contains */
d3ee1165
  * refactored loaders
9584f0b3
 
 * 0.9.3 (2009-11-11)
 
 This release is NOT backward compatible with the previous releases.
 
   The loaders do not take the cache and autoReload arguments anymore. Instead,
   the Twig_Environment class has two new options: cache and auto_reload.
   Upgrading your code means changing this kind of code:
 
       $loader = new Twig_Loader_Filesystem('/path/to/templates', '/path/to/compilation_cache', true);
       $twig = new Twig_Environment($loader);
 
   to something like this:
 
       $loader = new Twig_Loader_Filesystem('/path/to/templates');
       $twig = new Twig_Environment($loader, array(
         'cache' => '/path/to/compilation_cache',
         'auto_reload' => true,
       ));
 
78ffe478
  * deprecated the "items" filter as it is not needed anymore
9584f0b3
  * made cache and auto_reload options of Twig_Environment instead of arguments of Twig_Loader
  * optimized template loading speed
  * removed output when an error occurs in a template and render() is used
5d28604a
  * made major speed improvements for loops (up to 300% on even the smallest loops)
  * added properties as part of the sandbox mode
  * added public properties support (obj.item can now be the item property on the obj object)
  * extended set tag to support expression as value ({% set foo as 'foo' ~ 'bar' %} )
  * fixed bug when \ was used in HTML
 
a9397b64
 * 0.9.2 (2009-10-29)
84bfd2da
 
a9397b64
  * 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)
abc9c5d5
  * added macro support
  * changed filters first optional argument to be a Twig_Environment instance instead of a Twig_Template instance
7ce2c3db
  * made Twig_Autoloader::autoload() a static method
6f535bc8
  * avoid writing template file if an error occurs
d11a3307
  * added $ escaping when outputting raw strings
f63d478b
  * enhanced some error messages to ease debugging
92b715f5
  * fixed empty cache files when the template contains an error
 
84bfd2da
 * 0.9.1 (2009-10-14)
00df3486
 
   * fixed a bug in PHP 5.2.6
   * fixed numbers with one than one decimal
   * added support for method calls with arguments ({{ foo.bar('a', 43) }})
   * made small speed optimizations
   * made minor tweaks to allow better extensibility and flexibility
 
 * 0.9.0 (2009-10-12)
 
0c98ebcd
  * Initial release