Commit Graph

668 Commits

Author SHA1 Message Date
Jason Bouffard c0447ec6fe Added an example of escaped "at" in a date filter.
Relates to https://github.com/fabpot/Twig/issues/330
2011-05-17 14:28:44 -07:00
Fabien Potencier 1e09c7b660 added template file information when an error occurs during compilation 2011-04-22 16:08:43 +02:00
Fabien Potencier 9d88081c94 tweaked Twig_Error to keep the passed line or template when passed in the constructor and findTemplateInfo() was not able to guess it better 2011-04-22 16:06:50 +02:00
Fabien Potencier 3a31463707 added PhpStorm as IDE that supports Twig out of the box 2011-04-22 09:53:49 +02:00
Fabien Potencier 42bcb19338 added a unit test 2011-04-15 16:21:45 +02:00
Fabien Potencier 58206d816b fixed typos in the doc 2011-04-14 10:03:43 +02:00
Fabien Potencier 91750f37e9 tweaked doc 2011-04-14 07:42:28 +02:00
Fabien Potencier ef55950c13 fixed typo in doc 2011-04-14 07:39:48 +02:00
Fabien Potencier f782f1ec06 updated CHANGELOG 2011-04-14 07:37:17 +02:00
Fabien Potencier 76205f1eaa added null as an alias to none and made TRUE, FALSE, and NONE equivalent to true, false, and none 2011-04-14 07:35:58 +02:00
Fabien Potencier 385dc39689 Merge remote branch 'markstory/whitespace'
* markstory/whitespace:
  Updating documentation for whitespace trim tags.
  Making trim tags consume all whitespace, both horizontal and vertical.
  Adding additional test suggested by nikic.
  Making a capturing group non capturing, as the group isn't used.
  Moving newline trimming into the regexp used to match end of tags.
  Applying changes suggested by nikic to simplify how end of comments are processed.
  Fixing some whitespace.
  Fixing typo.
  Adding a bit of documentation for whitespace trimming.
  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
  Fixing use of non-existent method name.
  Adding a test case for mixing {%- and %} tags together.
  Adding a test that uses tabs. Added a test for trailing tabs and -%} Refs #284
  Implementing {%- which trims non-newline whitespace preceding it. Refs
2011-04-14 07:22:57 +02:00
Mark Story 485213a22b Updating documentation for whitespace trim tags. 2011-04-13 22:15:32 -04:00
Mark Story 99e3246c49 Making trim tags consume all whitespace, both horizontal and vertical. 2011-04-13 22:10:57 -04:00
Fabien Potencier d96dbb442f removed empty if 2011-04-12 16:04:26 +02:00
Fabien Potencier fbadd66852 tweaked error message when wrapping an external exception 2011-04-12 15:40:26 +02:00
Fabien Potencier 4d2727f004 made Twig_Error::findTemplateInfo() more robust 2011-04-12 14:42:00 +02:00
Fabien Potencier d45c980a41 refactored some tests 2011-04-12 10:21:00 +02:00
Fabien Potencier d84b978e1a fixed some tests 2011-04-12 09:58:10 +02:00
Fabien Potencier 34ff3b4a76 tweaked error wrapping 2011-04-12 09:32:38 +02:00
Fabien Potencier 945b0bce9e refactored some tests 2011-04-12 09:31:35 +02:00
Fabien Potencier 96f2261112 removed line parameter from Twig_Template::getAttribute() and getContext() as the information is now gathered by Twig_Error_Wrapped 2011-04-12 08:12:27 +02:00
Fabien Potencier ad427be36e added a Twig_Error_Wrapped exception to try to add template name and line when a problem occurs at runtime 2011-04-12 07:59:36 +02:00
Fabien Potencier 4f37cdd08d Revert "deleted abstract method doDisplay (maintain BC)"
This reverts commit 70d90bedce.
2011-04-12 07:54:05 +02:00
Fabien Potencier 9c17a51fe4 Merge remote branch 'hason/template'
* hason/template:
  deleted abstract method doDisplay (maintain BC)
  added possibility to customize "display" in the base template class
2011-04-12 07:53:48 +02:00
Fabien Potencier 27f44bfe54 Merge remote branch 'nikic/fixWrongMethodCallInTest'
* nikic/fixWrongMethodCallInTest:
  $e->setFilename to $e->setTemplateFile in integrationTest
2011-04-11 18:51:49 +02:00
Hugo Hamon 599a508d89 [doc] added the link to the Twig Netbeans plugin. 2011-04-07 00:31:51 +02:00
Mark Story ec052b3ae0 Adding additional test suggested by nikic. 2011-04-05 21:36:44 -04:00
Mark Story 86bc75bfe4 Making a capturing group non capturing, as the group isn't used. 2011-04-05 21:06:58 -04:00
Mark Story 650d0f2948 Moving newline trimming into the regexp used to match end of tags. 2011-04-02 10:11:44 -04:00
Mark Story d0b40aff67 Applying changes suggested by nikic to simplify how end of comments are processed. 2011-04-02 10:08:51 -04:00
Mark Story 86b11197c0 Fixing some whitespace. 2011-04-02 10:05:55 -04:00
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
nikic 9a79078dd2 $e->setFilename to $e->setTemplateFile in integrationTest 2011-03-30 17:37:23 +02: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