Commit Graph

875 Commits

Author SHA1 Message Date
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
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 a7fdec2383 bumped version to 1.3.0-DEV 2011-09-22 11:30:08 +02:00
Fabien Potencier 4a5057997d prepared 1.2.0 release v1.2.0 2011-09-13 17:01:30 +02:00
Fabien Potencier 8c086d7560 prepared 1.2.0-RC1 release v1.2.0-RC1 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 fb07ab8623 merged branch maxromanovsky/master (PR #431)
Commits
-------

4b95621 Added: Countable interface support for empty test

Discussion
----------

Countable interface support for empty test

See [issue](https://github.com/fabpot/Twig/issues/430)
2011-09-06 09:14:27 +02:00
Max Romanovsky 4b95621c0f Added: Countable interface support for empty test 2011-09-04 15:13:42 +03:00
Fabien Potencier cbbeb71e85 added more unit tests 2011-09-01 10:54:15 +02:00
Fabien Potencier 9c2065facc removed some loop variable when using an if statement in a for loop 2011-09-01 10:41:03 +02:00
Fabien Potencier 39774a1118 made a markup refactoring 2011-09-01 10:33:25 +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 2be5bc986a tweaked an error message 2011-09-01 08:06:05 +02:00
Fabien Potencier 598c70ba39 renamed a class in unit test to avoid confusion with PHPStorm 2011-08-31 11:10:12 +02:00
Fabien Potencier 6473f22fa6 fixed resolveTemplate() method (we only catch loader exceptions) 2011-08-30 22:58:17 +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 ca3d5a821d simplified previous merge 2011-08-29 18:47:24 +02:00
Fabien Potencier b1bfb14d46 fixed CS 2011-08-29 18:27:12 +02:00
Fabien Potencier 2e90373a59 merged branch Brouznouf/patch-1 (PR #425)
Commits
-------

4dc490f Removing array_shift for optimisation.

Discussion
----------

Removing array_shift for optimisation.

For example we check if a template and use exception to redirect to a default template

Before : We checked ~1000 times => 100sec due to array_shift
After  : ~1sec
2011-08-29 18:26:20 +02:00
Joel Wurtz 4dc490fbd5 Removing array_shift for optimisation.
For example we check if a template and use exception to redirect to a default template

Before : We checked ~1000 times => 100sec due to array_shift
After  : ~1sec
2011-08-30 06:02:31 +03:00
Fabien Potencier 543d18b27d fixed markup in the doc 2011-08-28 09:12:46 +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