Commit Graph

634 Commits

Author SHA1 Message Date
Mark Story 08959ab5da Fixing typo. 2011-03-31 21:24:00 -04:00
Mark Story 8f158bdda9 Adding a bit of documentation for whitespace trimming. 2011-03-30 21:55:15 -04:00
Mark Story d9749fcb31 Adding whitespace trimming support to other tag types (comments, variables)
Refactoring how whitespace trimming is done, and moving it into a separate option that is combined with other tag types.
Adding more tests.
Refs #284
2011-03-30 07:33:04 -04:00
Mark Story bc4d8b32cd Fixing use of non-existent method name. 2011-03-30 07:32:06 -04:00
Mark Story 36516f67f2 Adding a test case for mixing {%- and %} tags together. 2011-03-28 22:12:59 -04:00
Mark Story a615a3cc88 Adding a test that uses tabs.
Added a test for trailing tabs and -%}
Refs #284
2011-03-28 22:12:59 -04:00
Mark Story 22cf53fdfa Implementing {%- which trims non-newline whitespace preceding it. Refs 2011-03-28 22:12:59 -04:00
Fabien Potencier 2f106a80cc fixed CHANGELOG v1.0.0 2011-03-27 21:17:16 +02:00
Fabien Potencier 8fb005220e updated CHANGELOG 2011-03-27 19:28:16 +02:00
Fabien Potencier 81d03de46b added some tests 2011-03-27 18:53:52 +02:00
Fabien Potencier 340b22c5e0 Merge remote branch 'nikic/fixSandboxDuplicateMethodCalls'
* nikic/fixSandboxDuplicateMethodCalls:
  fix duplicate call of methods if using sandbox
2011-03-27 18:49:04 +02:00
Fabien Potencier 7d78d5f7a8 added a test 2011-03-27 18:13:59 +02:00
Fabien Potencier 8ab31e0626 added some cleanup in unit tests 2011-03-27 17:50:50 +02:00
Fabien Potencier d99edfc8f4 replaced the Twig_Environment::load() shortcut by a more useful render() one 2011-03-26 10:24:45 +01:00
Jordi Boggiano 214af8f9b5 Ensure all mbstring calls have the charset specified 2011-03-23 16:39:25 +01:00
Fabien Potencier 47fa8535b6 added Twig_Environment::load() as an alias for loadTemplate() 2011-03-22 11:58:42 +01:00
Fabien Potencier 79ab9babed Merge remote branch 'markstory/ticket-277'
* markstory/ticket-277:
  Updating documentation for blocks, mentioning that block names cannot contain -.  Fixes #277
2011-03-21 19:24:59 +01:00
Marc Abramowitz 081b26c366 Correct spelling error (in 3 places): "unkown" -> "unknown" 2011-03-21 19:07:25 +01:00
nikic 7cb09a5fbf fix duplicate call of methods if using sandbox 2011-03-17 18:27:08 +01:00
Fabien Potencier 64f8709de2 made the charset configurable for the escape filter 2011-03-17 08:02:42 +01:00
Anomareh bec8839394 Added a link to the Twig TextMate bundle and fixed a typo. 2011-03-13 09:28:05 +01:00
Fabien Potencier 720cc7e2e1 fixed typo 2011-03-11 19:09:05 +01:00
Fabien Potencier e8fa22a43b added a recipe 2011-03-11 13:29:40 +01:00
Mark Story 92b0ec434f Updating documentation for blocks, mentioning that block names cannot contain -. Fixes #277 2011-03-10 22:35:36 -05:00
Pascal Borreli bfb8f84a44 [Twig] renamed: phpunit.xml -> phpunit.xml.dist 2011-03-10 16:58:38 -08:00
Fabien Potencier a1c33ec0d3 updated CHANGELOG v1.0.0-RC2 2011-02-21 16:04:18 +01:00
Fabien Potencier 1ac5075879 updated documentation and added a unit test 2011-02-18 16:25:30 +01:00
nikic 01b8c7cfae capturing {% set %} should give Twig_Markup 2011-02-18 16:12:30 +01:00
nikic 49e542b507 remove old code for setting all optimizers 2011-02-18 09:32:29 +01:00
nikic 587063efbf add some more DocComments / type hints 2011-02-18 09:32:28 +01:00
Fabien Potencier c0945a255d added support for macro name in the endmacro tag 2011-02-17 13:36:40 +01:00
nikic c08ed75c18 fix some typos 2011-02-09 06:50:09 +01:00
nikic 8b0d71fb33 swap GetAttr constructor arguments for from .. import macros 2011-02-09 06:48:48 +01:00
Fabien Potencier d479a704c6 fixed typos 2011-02-08 15:39:03 +01:00
Fabien Potencier f9c570e5c3 added a way for template name to be anything 2011-02-06 21:09:23 +01:00
Fabien Potencier bb7e422909 Revert "added the possibility to pass a readable name for templates"
This reverts commit 7a7c23f197.
2011-02-06 21:03:13 +01:00
Fabien Potencier 4501984e5d fixed filter tag 2011-02-05 23:57:22 +01:00
Fabien Potencier 7a7c23f197 added the possibility to pass a readable name for templates 2011-02-04 12:53:35 +01:00
Fabien Potencier 529721d773 fixed wrong usage of loadTemplate() 2011-02-04 12:53:34 +01:00
Martin Hason 46eb49e7e5 fixed functions 2011-02-04 00:55:51 +01:00
Martin Hason a9127329fb fixed test covers 2011-02-04 00:55:51 +01:00
Fabien Potencier d43e346324 fixed __call() 2011-02-04 00:51:34 +01:00
Martin Hason 8adcbd971d make Twig_Error compatible with PHP 5.3.0 > 2011-02-04 00:48:00 +01:00
Fabien Potencier 4e6011d1ac fixes an infinite loop on some Windows configurations 2011-01-31 08:48:35 +01:00
Fabien Potencier 051e6ab829 fixed possible warning 2011-01-27 23:12:35 +01:00
Fabien Potencier 5b6d255a55 fixed the "length" filter for numbers 2011-01-22 09:12:57 +01:00
Fabien Potencier d7ca8375fd made a small tweak 2011-01-17 07:45:12 +01:00
Fabien Potencier f1be27301b added a note about the main advantage of creating an extension 2011-01-16 08:00:40 +01:00
Fabien Potencier 4e62a4d1b4 fixed typo in phpdoc 2011-01-16 07:55:52 +01:00
Fabien Potencier 64f63bef19 removed coupling between Twig_Node and Twig_Template
This coupling was bad as Twig_Node should only be useful
during compilation.

So, the Twig_Node_Expression_GetAttr constants have been moved
to Twig_TemplateInterface.
2011-01-16 07:49:01 +01:00