Commit Graph

155 Commits

Author SHA1 Message Date
Fabien Potencier 8fe302bb3e converted the range filter to a function 2010-12-20 08:36:03 +01:00
Fabien Potencier 508a241179 forced functions to have fn_ as a prefix to avoid name clashes between functions and variables 2010-12-19 22:24:10 +01:00
Fabien Potencier 739bfb2891 fixed doc index 2010-12-19 21:53:00 +01:00
Fabien Potencier dc884c3888 rewrote the advanced chapter and documented globals and functions 2010-12-19 20:11:00 +01:00
Fabien Potencier 9d77cf2254 added from tag 2010-12-19 19:50:00 +01:00
Fabien Potencier f9507d8883 fixed markup 2010-12-18 14:20:48 +01:00
Fabien Potencier fc4fe73f57 added a new recipe 2010-12-18 14:19:40 +01:00
Fabien Potencier e782d41963 fixed if tag documentation 2010-12-18 13:44:51 +01:00
Fabien Potencier 583718ee1a changed default filter to use the empty test 2010-12-18 12:56:44 +01:00
Fabien Potencier 4fbbad44f1 fixed markup in doc 2010-12-18 11:53:59 +01:00
Fabien Potencier 0d424bff0d added the empty test 2010-12-18 11:53:55 +01:00
nikic dfa0cb91dd some improvements to for tag compiler 2010-12-18 09:04:23 +01:00
Fabien Potencier 9a793744c6 tweaked merge filter 2010-12-16 09:44:10 +01:00
Fabien Potencier 78b104bfc3 added documentation for the merge filter 2010-12-16 09:07:55 +01:00
Fabien Potencier a855b1898a converted documentation to rst 2010-12-15 12:25:16 +01:00
Fabien Potencier 2e55141431 moved the i18n extension to the Twig Extensions repository 2010-12-15 08:32:25 +01:00
Fabien Potencier f3f72bc455 added an optimizations options to Twig_Environment 2010-12-14 17:30:45 +01:00
Fabien Potencier 9bcf7719d1 tweaked doc 2010-12-14 09:33:11 +01:00
Fabien Potencier 4505200d9f changed array/hashes notation 2010-12-14 09:33:07 +01:00
Fabien Potencier e9c329e577 fixed phpdoc, tweaked doc 2010-12-14 07:54:51 +01:00
Fabien Potencier ac0b54c141 removed the 'without loop' attribute for the 'for' tag 2010-12-13 15:59:12 +01:00
Fabien Potencier cda18ed947 added the autoescape option to enable/disable autoescaping 2010-12-12 14:34:07 +01:00
nikic 6e1f5f7b54 fix automatic escaping documentation 2010-12-12 07:33:25 +01:00
Fabien Potencier 49799bc3d4 updated documentation on operators 2010-12-03 07:11:43 +01:00
Fabien Potencier 2fe655fa2a made the Escaper and Optimizer extensions enabled by default 2010-12-02 10:26:45 +01:00
IamPersistent 167e2d8a0d add instructions for the current date 2010-11-30 13:58:45 +01:00
Fabien Potencier 13f80898a2 tweaked odc intro 2010-11-28 19:21:08 +01:00
Fabien Potencier 15e6682421 made some small changes to the previous commit 2010-11-28 17:14:26 +01:00
Jordi Boggiano 0e1b2ca857 Added joined by statement to for loops 2010-11-28 17:10:03 +01:00
Fabien Potencier 3f9453c8ea added doc for the optimizer extension 2010-11-28 16:55:40 +01:00
Arnaud Le Blanc c34dee83f2 updated doc for the pre_escape filter option 2010-11-28 08:14:37 +01:00
Fabien Potencier f4c55791f7 added some example usage for the defined test in the doc 2010-11-26 19:14:17 +01:00
Fabien Potencier 4bf33bf8e8 fixed typo 2010-11-26 17:21:29 +01:00
Fabien Potencier 9d8583efcc rewrote expression parser with a new algorithm to limit the depth of nested calls
This change has no impact for the end user, but many internal benefits:

* less nested calls (was the primary reason for the change as xdebug limits the depth of nested calls);
* less code;
* code is much cleaner (I have removed all the parsing "hacks");
* faster;
* more flexible (we will now be able to expose an API to add new operators);
* easier to maintain.
2010-11-26 16:35:59 +01:00
Fabien Potencier 5b4c074223 added a defined test (strict_variables is now useable) 2010-11-24 09:47:51 +01:00
Fabien Potencier 4778822863 added _charset as a special variable that references the current charset 2010-11-20 14:44:00 +01:00
Fabien Potencier 1d2afa097f added the spaceless tag 2010-11-19 13:26:23 +01:00
Fabien Potencier 38acf6f134 removed trim_blocks option
The trim_blocks option has been removed as the rendered output depends on the value of this option.
This is not a problem for HTML output, but it's a big one if you want to output
plain text for instance.

The behavior now is the same as if the trim_blocks option is set to true. It mimicks
the behavior of PHP tags.
2010-11-19 13:21:24 +01:00
Fabien Potencier 001685ba13 added support for is*() methods for attributes (foo.bar now looks for foo->getBar() or foo->isBar()) 2010-11-16 10:51:23 +01:00
Fabien Potencier ad58f1e9a7 made a clarification to the doc 2010-11-07 22:18:41 +01:00
ornicar b54292327e Fix replace filter name in documentation 2010-11-07 20:40:49 +01:00
Arnaud Le Blanc c04d119d10 update docs for automatic escaping 2010-11-07 20:24:58 +01:00
Fabien Potencier 6859c089af added a note about using rewind() after look() 2010-11-07 14:37:08 +01:00
Fabien Potencier 011e727b22 fixed documentation and added infix notation for in (already supported for is) 2010-11-07 14:21:10 +01:00
Fabien Potencier 10cab46129 made the include tag more flexible 2010-11-01 04:24:32 +01:00
Fabien Potencier d70af74d1f fixed typos in the docs 2010-10-19 13:19:52 +02:00
Fabien Potencier 3daa9f095c fixed typo in the doc 2010-10-11 12:27:59 +02:00
Fabien Potencier 685cc49be1 updated doc 2010-10-06 15:11:15 +02:00
Fabien Potencier 29b020eb2f changed the way to access nodes and attributes from a node
Before:
  Nodes were accessed via node properties ($node->body)
  Attributes were accessed via node array access ($node['name'])

After:
  Nodes are accessed via getNode(), setNode(), ... ($node->getNode('body'))
  Attributes are accessed via getAttribute(), setAttribute(), ... ($node->getAttribute('name'))

The change was necessary because of side-effects. This is one more time the
demonstration that being explicit is always better than magic ;)
2010-10-02 08:29:25 +02:00
henrikbjorn 56caee0937 renamed |safe to |raw to avoid unnecesarry confusion about what the tags does.
Discussion can be viewed here http://groups.google.com/group/symfony-devs/browse_thread/thread/b927063310c74411. All tests pass.
2010-10-01 19:17:22 +02:00