Fabien Potencier
4f19c7a04b
added support for dynamically named filters and functions
2011-12-18 20:20:35 +01:00
Fabien Potencier
865a7039f8
added a dump function to help debugging templates
2011-12-18 18:30:06 +01:00
Fabien Potencier
932a4d8d94
added a nl2br filter
2011-12-18 12:36:07 +01:00
Fabien Potencier
89a1519e09
added a random function
2011-12-18 11:27:47 +01:00
Fabien Potencier
f8b7441e42
added a way to change the default format for the date filter
2011-12-18 11:12:59 +01:00
Fabien Potencier
ae250f6b6f
fixed the lexer when an operator ending with a letter ends a line
2011-12-08 09:29:20 +01:00
Fabien Potencier
6e2d7ba1b9
added documentation for the new string interpolation feature
2011-12-07 11:03:00 +01:00
Fabien Potencier
08bda72355
enhanced exceptions for unknown filters, functions, tests, and tags
2011-12-07 09:54:44 +01:00
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