Commit Graph

899 Commits

Author SHA1 Message Date
Nils Langner 389f2c2603 Changed mode from 0755 to 0644 2011-10-25 16:49:17 +02:00
Nils Langner c48bd2f809 Fixed wrong used PHPDoc tags 2011-10-25 14:32:16 +02:00
Fabien Potencier d10966132b added Twig_Environment::display() 2011-10-17 13:01:40 +02:00
Fabien Potencier f6961d558d simplified some code 2011-10-17 02:48:36 +02:00
Fabien Potencier a41c6e21d2 added more unit tests 2011-10-17 01:16:34 +02:00
Fabien Potencier e7347160cb added an optimization when the same temporary variable would have been created twice 2011-10-16 22:18:02 +02:00
Fabien Potencier d3178d3406 fixed doc 2011-10-16 11:15: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 846a2c134d added a Twig_Node_Expression_DefaultFilter to replace the current way of dealing with default filters 2011-10-16 05:46:09 +02:00
Fabien Potencier ac3bb814d5 added public getters on the environment to be able to get various stuff 2011-10-15 10:57:18 +02:00
Fabien Potencier df47659e9d fixed exception 2011-10-15 01:10:30 +02:00
Fabien Potencier 3377d569da fixed download page in the docs 2011-10-14 11:46:15 +02:00
Fabien Potencier 9d6fcb5b32 merged branch trompette/patch-1 (PR #465)
Commits
-------

0451cfd typo

Discussion
----------

typo
2011-10-13 08:20:40 +02:00
Benoît Merlet 0451cfdd16 typo 2011-10-12 15:45:28 +03:00
Fabien Potencier 2408628787 updated CHANGELOG 2011-10-08 14:30:37 +02:00
Fabien Potencier dd0546eaa9 refactored Twig_Node_Expression_GetAttr for better readability of compiled templates 2011-10-08 14:27:18 +02:00
Fabien Potencier a68425118d optimized variable access when possible 2011-10-08 14:27:18 +02:00
Fabien Potencier 4a91f4ff34 refactored 'defined' test and 'default' filter
Node manipulations have been moved outside the compile() method.
That's needed if we want to be able to visit all nodes that will be
compiled.
2011-10-08 14:27:18 +02:00
Fabien Potencier e76fc0cb55 optimized lexer by pre-computing regexes 2011-10-08 14:27:18 +02:00
Fabien Potencier bd5687ee10 made an optimization by removing array_merge usage 2011-10-08 14:27:18 +02:00
Fabien Potencier 4c2ecdb61d bumped version to 1.4.0-DEV 2011-10-08 14:05:18 +02:00
Fabien Potencier 4b929992df prepared the 1.3.0-RC1 release v1.3.0 2011-10-08 14:04:10 +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 v1.3.0-RC1 2011-10-04 09:58:29 +02:00
Fabien Potencier 737c29a613 fixed a unit test for PHPUnit 3.6 2011-10-03 23:08:58 +02:00
Fabien Potencier 6c6a44fa84 fixed optimizer 2011-09-30 22:49:47 +02:00
Fabien Potencier d340339ae0 fixed wrong node type for the for tag 2011-09-30 17:11:02 +02:00
Fabien Potencier 3e66e3e9c0 added an optimization for simple variables output 2011-09-30 17:11:02 +02:00
Fabien Potencier e0cd76614f fixed hardcoded name escaping 2011-09-30 17:10:56 +02:00
Fabien Potencier b058160e97 removed usage of PHP 5.3 __DIR__ 2011-09-29 17:16:55 +02:00
Fabien Potencier 1681cb2fa3 fixed composer version 2011-09-29 16:51:02 +02:00
Fabien Potencier bdf2d5b2c3 merged branch igorw/composer (PR #452)
Commits
-------

bd04de2 [composer] add composer.json

Discussion
----------

[composer] add composer.json
2011-09-29 16:47:57 +02:00
Fabien Potencier 6d5a070fac merged branch phiamo/master (PR #454)
Commits
-------

5fa0094 Added Capability to format DateInterval via twig date filter

Discussion
----------

Added Capability to format DateInterval via twig date filter

hi,
i was wondering why twig couldn't format my DateInterval and added it.

Either this is ok for you or we should add something similar for DateInterval because it uses a little bit different syntax to format its string (e.g. prepend with "%")

Cheers Phil
2011-09-29 16:46:39 +02:00
Fabien Potencier a188f97040 fixed unit test broken by previous merge 2011-09-29 16:44:28 +02:00
Fabien Potencier d20f970d9a merged branch Sannis/patch-1 (PR #455)
Commits
-------

68ec644 FloorDiv (//) should return integer value according to documentation

Discussion
----------

FloorDiv (//) should return integer value according to documentation
2011-09-29 16:39:01 +02:00
Oleg Efimov 68ec644936 FloorDiv (//) should return integer value according to documentation 2011-09-29 13:24:03 +04:00
phiamo 5fa00942dd Added Capability to format DateInterval via twig date filter 2011-09-29 02:44:55 +02:00
Igor Wiedler bd04de2819 [composer] add composer.json 2011-09-27 20:15:15 +02:00
Fabien Potencier f96d8d8219 added an optimization for the parent() function 2011-09-27 14:17:34 +02:00
Fabien Potencier d9d38d6c1e added a note about the usage of Twig_Template methods 2011-09-27 14:06:47 +02:00
Fabien Potencier b096e21daa refactored documentation 2011-09-27 08:43:35 +02:00
Fabien Potencier d65366e772 simplified intro and added a not about the render() method in docs 2011-09-26 11:19:36 +02:00
Fabien Potencier d02d07d5ec fixed makup in doc 2011-09-26 10:32:52 +02:00
Fabien Potencier 5446d45f6e made a small optimization when a macro does not take any argument 2011-09-24 14:20:57 +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 620da47e7f tweaked docs 2011-09-23 07:36:42 +02:00
Fabien Potencier 256f57e55f tweaked previous merge 2011-09-22 22:08:10 +02:00
Fabien Potencier 0408f0afaf merged branch runfalk/master (PR #368)
Commits
-------

eb5c9fb Recipe code formatting fix. New recipe for improved APC bytecode support

Discussion
----------

APC recipe

A new recipe to support cache invalidation when using *APC* with *apc.stat* = 0 and compiled code caching turned on. One sometimes want to test things without restarting apache. This recipe overrides *writeCacheFile* in *Twig_Environment* and calls *apc_compile_file to refresh cache.
2011-09-22 22:04:27 +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