Commit Graph

258 Commits

Author SHA1 Message Date
Fabien Potencier 460ba4d6c7 bumped version to 1.5.0-DEV 2011-12-07 08:11:23 +01:00
Fabien Potencier 0b7d6dfa0c prepared the 1.4.0 release 2011-12-07 08:09:57 +01:00
Fabien Potencier a6f9f9b5e3 added a unit test test for previous merge 2011-12-06 16:54:43 +01:00
Fabien Potencier 6e3a1c4016 added missing preserveKeys argument to the reverse filter 2011-12-03 08:37:53 +01:00
Fabien Potencier c6917a28ef fixed macros containing filter tag calls 2011-12-03 08:16:26 +01:00
Fabien Potencier 7d56687f8e prepared the 1.4.0-RC2 release 2011-11-27 20:32:27 +01:00
Fabien Potencier fa71922a19 tweaked CHANGELOG 2011-11-23 12:21:50 +01:00
Fabien Potencier 7bc07dc132 removed usage of Reflection in Twig_Template::getAttribute() (thanks Pierre Joye for the property tip) 2011-11-21 10:46:19 +01:00
Fabien Potencier fc6819cec2 added support for twig C extension 2011-11-21 09:36:32 +01:00
Fabien Potencier 9d2272efbf fixed previous merge and added some unit tests 2011-11-21 09:04:06 +01:00
Fabien Potencier 2e268ccd9b prepared the 1.4.0-RC1 release 2011-11-20 10:41:28 +01:00
Fabien Potencier 1b32617b97 optimized variable access when using PHP 5.4 2011-11-18 22:31:28 +01:00
Fabien Potencier 10c799fd90 changed the precedence of the .. operator 2011-11-05 08:30:08 +01:00
Fabien Potencier a3fcbd62cb updated CHANGELOG 2011-11-05 08:03:53 +01:00
Fabien Potencier 9117fc1ce0 added Twig_Function_Node to allow more complex functions to have their own Node class 2011-11-01 11:49:04 +01:00
Fabien Potencier 3427adc7ec added Twig_Filter_Node to allow more complex tests to have their own Node class (the default filter has been converted to use this new feature) 2011-11-01 11:48:05 +01:00
Fabien Potencier b1d06ccbc9 added Twig_Test_Node to allow more complex tests to have their own Node class (sameas has been converted as an example) 2011-11-01 08:50:36 +01:00
Fabien Potencier 083d839000 added a better error message when a template is empty but contain a BOM 2011-10-31 18:49:47 +01:00
Fabien Potencier dfdd555b9a fixed in operator for empty strings 2011-10-29 14:50:10 +02:00
Fabien Potencier 29534aada8 fixed the "defined" test and the "default" filter 2011-10-27 18:26:17 +02:00
Fabien Potencier 2c7b565132 changed the way extensions are loaded (addFilter/addFunction/addGlobal/addTest/addNodeVisitor/addTokenParser/addExtension can now be called in any order) 2011-10-25 13:58:27 +02:00
Fabien Potencier d10966132b added Twig_Environment::display() 2011-10-17 13:01:40 +02:00
Fabien Potencier 344043e891 made the escape filter smarter when the encoding is not supported by PHP 2011-10-16 11:12:08 +02:00
Fabien Potencier c015e8184a added a convert_encoding filter 2011-10-16 11:12:06 +02:00
Fabien Potencier 2408628787 updated CHANGELOG 2011-10-08 14:30:37 +02:00
Fabien Potencier 4c2ecdb61d bumped version to 1.4.0-DEV 2011-10-08 14:05:18 +02:00
Fabien Potencier 8dcc0b3029 updated CHANGELOG 2011-10-08 14:03:38 +02:00
Fabien Potencier 5c1277eb8a prepared the 1.3.0-RC1 release 2011-10-04 09:58:29 +02:00
Fabien Potencier f96d8d8219 added an optimization for the parent() function 2011-09-27 14:17:34 +02:00
Fabien Potencier d472d21515 added cache reloading when auto_reload is true and an extension has been modified 2011-09-24 08:05:14 +02:00
Fabien Potencier 46080c90ea added the possibility to force the escaping of a string already marked as safe 2011-09-22 21:57:09 +02:00
Fabien Potencier d101a05976 added traits support for the parent function 2011-09-22 14:06:20 +02:00
Fabien Potencier 56f82db1a1 allowed empty templates to be used as traits 2011-09-22 11:51:48 +02:00
Fabien Potencier 4a5057997d prepared 1.2.0 release 2011-09-13 17:01:30 +02:00
Fabien Potencier 8c086d7560 prepared 1.2.0-RC1 release 2011-09-10 08:57:30 +02:00
Fabien Potencier 4ea393adb0 added an exception for unclosed tags 2011-09-06 13:45:10 +02:00
Fabien Potencier e9b041f911 updated CHANGELOG 2011-09-06 09:15:46 +02:00
Fabien Potencier f20450d13d fixed algorithm that determines if a template using inheritance is valid (no output between block definitions) 2011-09-01 08:13:26 +02:00
Fabien Potencier 453c3e8b00 added better support for encoding problems when escaping a string (available as of PHP 5.4)
From the PHP CHANGELOG:

The flag ENT_SUBSTITUTE makes invalid multibyte sequences be replaced by
U+FFFD (UTF-8) or &#FFFD; by htmlspecialchars and htmlentities. It is an
alternative to the default behavior, which just returns an empty string and to
ENT_IGNORE, which is a security risk. The behavior follows the recommendations
of Unicode Technical Report #36.
2011-08-30 07:38:41 +02:00
Fabien Potencier 4402ee2c1d added support for an array of templates to the "extends" tag 2011-08-27 20:34:02 +02:00
Fabien Potencier c56dd32f57 added a way to ignore a missing template when using the "include" tag 2011-08-27 14:02:05 +02:00
Fabien Potencier 35a8a0d155 added support for an array of templates to the include tag 2011-08-27 13:58:36 +02:00
Fabien Potencier acd3663062 updated CHANGELOG 2011-08-27 11:11:38 +02:00
Fabien Potencier c609060f94 added the "attribute" function to allow getting dynamic attributes on variables 2011-08-27 09:46:06 +02:00
Fabien Potencier 517c233679 added Twig_Loader_Chain 2011-08-24 12:56:57 +02:00
Fabien Potencier d6ebae56b7 added Twig_LoaderArray::setTemplate() 2011-08-24 12:17:36 +02:00
Fabien Potencier 7b5e5969a2 added an optimization for the set tag when used to capture a large chunk of static text 2011-08-07 19:08:15 +02:00
Fabien Potencier 112a16bfde changed name regex to allow more characters (the same as PHP - works for blocks, tags, functions, filters, and macros - closes #376) 2011-08-07 10:07:35 +02:00
Fabien Potencier 801f3e638c removed the possibility to use the extends tag from a block (as it is semantically incorrect and it probably does not work as you expect it to in this case) 2011-08-06 09:16:10 +02:00
Fabien Potencier 46eccb9ab5 added documentation for previous merge 2011-08-06 08:44:04 +02:00