Commit Graph

2065 Commits

Author SHA1 Message Date
Fabien Potencier 98aaffddcf minor#1202 Missing doc details for building C extension on windows (Matzz)
This PR was squashed before being merged into the master branch (closes #1202).

Discussion
----------

Missing doc details for building C extension on windows

Commits
-------

1a65132 Missing doc details for building C extension on windows
2013-09-27 22:04:22 +02:00
Mateusz Zakarczemny 1a65132f06 Missing doc details for building C extension on windows 2013-09-27 22:04:22 +02:00
Fabien Potencier f5da56ff68 feature#1189 added a way to add custom escaping strategies (fabpot)
This PR was merged into the master branch.

Discussion
----------

added a way to add custom escaping strategies

This adds the possibility to define custom escapers that can be used with the `escape` filter.

That would close #1178 and #1177, but I'm not sure that this is a good idea.

What do you think?

Commits
-------

55f8b27 added a way to add custom escaping strategies
2013-09-27 21:58:41 +02:00
Fabien Potencier d827c601e3 merged branch lyrixx/insight (PR #1196)
This PR was merged into the master branch.

Discussion
----------

Fixed somes issues from SensioLabsInsight

All others errors could be ignore IMHO
And the `Test` directory should be ignored in the project configuration

Commits
-------

e0da5cc Fixed somes issues from SensioLabsInsight
2013-09-20 22:40:25 +02:00
Grégoire Pineau e0da5ccee7 Fixed somes issues from SensioLabsInsight 2013-09-20 22:12:04 +02:00
Fabien Potencier 00ecabf1b0 fixed CS 2013-09-19 13:52:25 +02:00
Fabien Potencier 0d97eb9528 merged branch javer/hhvm-array-traversable (PR #1192)
This PR was merged into the master branch.

Discussion
----------

HHVM compatibility: array sometimes can be Traversable

All checks on instance of Traversable prepended with is_object check.

See facebook/hiphop-php#1034 for details.

Commits
-------

b1b1e3c HHVM compatibility: array sometimes can be Traversable
2013-09-17 15:39:25 +02:00
Fabien Potencier 4fcaf0c5fc merged branch unkind/master (PR #1193)
This PR was merged into the master branch.

Discussion
----------

Add "cols" parameter to the textarea macro

Macro textarea depends on cols variable, but there is no way to pass it.

Commits
-------

c735d6d Add "cols" parameter to the textarea macro
2013-09-17 09:54:50 +02:00
unkind c735d6de7a Add "cols" parameter to the textarea macro
Macro textarea depends on cols variable, but there is no way to pass it.
2013-09-17 11:34:02 +04:00
javer b1b1e3c3a9 HHVM compatibility: array sometimes can be Traversable
All checks on instance of Traversable prepended with is_object check.

See facebook/hiphop-php#1034 for details.
2013-09-15 21:42:04 +03:00
Fabien Potencier 55f8b27e12 added a way to add custom escaping strategies 2013-09-11 20:26:15 +02:00
Fabien Potencier 4001f81a17 updated CHANGELOG 2013-09-08 17:21:02 +02:00
Fabien Potencier 1600817425 fixed markup 2013-09-06 12:25:58 +02:00
Fabien Potencier a14d0e4ac8 merged branch tucksaun/fix-doc-for-windows (PR #1186)
This PR was merged into the master branch.

Discussion
----------

Add doc for building C extension on windows

Commits
-------

12500b3 Added doc for building C extension on windows
a53c467 Removed link to pre-build DLL for windows as they are outdated
2013-09-06 12:25:04 +02:00
Tugdual Saunier 12500b3e1f Added doc for building C extension on windows 2013-09-06 12:05:05 +02:00
Tugdual Saunier a53c467e66 Removed link to pre-build DLL for windows as they are outdated 2013-09-06 11:34:45 +02:00
Fabien Potencier c0731335a1 merged branch peterkokot/patch-1 (PR #1184)
This PR was merged into the master branch.

Discussion
----------

Vim integration updated

Vim integration updated with alternative, Jinja for Vim link updated to the latest.

Commits
-------

d8346d4 Vim integration updated with alternative, Jinja for Vim link updated to the latest
2013-09-04 17:00:30 +02:00
Peter Kokot d8346d49e7 Vim integration updated with alternative, Jinja for Vim link updated to the latest 2013-09-04 16:57:27 +02:00
Fabien Potencier b5516cadf6 fixed CS 2013-09-04 08:20:08 +02:00
Fabien Potencier 3449713d4b merged branch Uplink03/patch-1 (PR #1180)
This PR was merged into the master branch.

Discussion
----------

Clarify what the "date" filter takes as parameter

Clarify what the "date" filter takes as parameter.

I went through Twig/Extension/Core.php to figure what's happening. I haven't verified that I'm actually correct, but it looks like I am.

Commits
-------

744ad32 Clarify what the "date" filter takes as parameter
2013-09-04 08:19:53 +02:00
Fabien Potencier f2f08e8e4b merged branch Tobion/simplify-constructor (PR #1181)
This PR was merged into the master branch.

Discussion
----------

simplify loader constructors

Commits
-------

ac23cd7 simplify loader constructors
2013-09-04 08:02:07 +02:00
Tobias Schultze ac23cd7ae4 simplify loader constructors 2013-09-04 01:09:57 +02:00
Uplink03 744ad32ceb Clarify what the "date" filter takes as parameter
Clarify what the "date" filter takes as parameter.

I went through Twig/Extension/Core.php to figure what's happening. I haven't verified that I'm actually correct, but it looks like I am.
2013-09-03 16:25:30 +01:00
Fabien Potencier ffec8ba902 removed unneeded variable 2013-09-02 15:50:59 +02:00
Fabien Potencier 427fce4d58 merged branch lyrixx/tests (PR #1179)
This PR was squashed before being merged into the master branch (closes #1179).

Discussion
----------

Added Tests to prevent future regression

Theses tests do not pass at 1.13.0

could be linked to 1b0a54189c

Commits
-------

8410f8c Added Tests to prevent future regression
2013-09-02 14:28:12 +02:00
Grégoire Pineau 8410f8caa9 Added Tests to prevent future regression 2013-09-02 14:28:12 +02:00
Fabien Potencier 3db6b6aeb9 fixed markup 2013-08-28 08:01:53 +02:00
Fabien Potencier eab827cb84 merged branch ksenzee/master (PR #1173)
This PR was merged into the master branch.

Discussion
----------

grammar and punctuation fixes

Commits
-------

bd1cb91 grammar and punctuation fixes
2013-08-28 08:01:30 +02:00
Katherine Senzee bd1cb91251 grammar and punctuation fixes 2013-08-27 15:48:13 -07:00
Fabien Potencier cacbf201af merged branch tucksaun/fix-win-compatibility (PR #1170)
This PR was merged into the master branch.

Discussion
----------

Fixed PHP extension compilation on Windows (closes #1167)

Commits
-------

7fb10c2 [ext] Fixed Windows compatibility (closes #1167)
2013-08-26 10:23:34 +02:00
Tugdual Saunier 7fb10c2dfa [ext] Fixed Windows compatibility (closes #1167) 2013-08-26 10:18:49 +02:00
Fabien Potencier fcf007e9a2 merged branch oktron/patch-1 (PR #1161)
This PR was merged into the master branch.

Discussion
----------

Add missing apostrophe

Commits
-------

8d93a1e Add missing apostrophe
2013-08-07 14:53:34 +02:00
oktron 8d93a1e454 Add missing apostrophe 2013-08-07 11:02:14 +02:00
Fabien Potencier e0fbce2fc0 updated CHANGELOG 2013-08-06 07:46:34 +02:00
Fabien Potencier 440e399af5 merged branch Misiur/master (PR #1158)
This PR was squashed before being merged into the master branch (closes #1158).

Discussion
----------

Don't use array_fill for full array

When last array returned from array_chunk is full, array_fill is called with 0 as num argument, which causes fatal error. Additionally I've changed doc fill parameter, as other types are accepted as well, and added unit test.

Commits
-------

270c794 Don't use array_fill for full array
2013-08-06 07:44:33 +02:00
Marcin Misiurski 270c7943b1 Don't use array_fill for full array 2013-08-06 07:44:33 +02:00
Fabien Potencier 3bcf32208a updated CHANGELOG 2013-08-05 18:50:34 +02:00
Fabien Potencier 7b80c942e2 removed usage of deprecated constants 2013-08-05 18:25:53 +02:00
Fabien Potencier 696ef2daaa removed usage of deprecated classes in unit tests 2013-08-05 18:18:58 +02:00
Fabien Potencier f888818fd4 fixed two edge case bug in the filesystem loader
* fixed caching when two templates have the same template name but a different namespace
* fixed the error message when a template has a namespace
2013-08-05 18:00:05 +02:00
Fabien Potencier 7c1ce36f87 reverted optimizations done in the filesystem loader as it beaks BC 2013-08-05 10:15:36 +02:00
Fabien Potencier e59c443aa8 fixed filesystem loader when the name needs to be normalized 2013-08-05 09:09:11 +02:00
Fabien Potencier 327b39bb08 simplified code 2013-08-04 23:45:34 +02:00
Fabien Potencier 9a01db60e8 replaced usage of md5/sha1 by sha256 2013-08-04 15:12:06 +02:00
Fabien Potencier a834dbb224 fixed template_from_string() cache side-effects 2013-08-04 15:09:59 +02:00
Fabien Potencier 9859a7e175 fixed CS 2013-08-04 15:08:44 +02:00
Fabien Potencier 2f5c9899a4 merged branch Cottser/master (PR #1071)
This PR was merged into the master branch.

Discussion
----------

Add static caching for Twig_Environment::getTemplateClass()

Coming from http://drupal.org/node/1979290.

```
=== baseline-views-field-twig..views-field-twig-static-cache compared (517896dc57c6e..5178989df1d0f):

ct  : 116,895|115,892|-1,003|-0.9%
wt  : 478,367|474,349|-4,018|-0.8%
cpu : 449,530|444,639|-4,891|-1.1%
mu  : 17,447,208|17,453,200|5,992|0.0%
pmu : 17,658,176|17,664,136|5,960|0.0%
```

http://www.lionsad.de/xhprof-kit/xhprof/xhprof_html/?run1=517896dc57c6e&run2=5178989df1d0f&source=drupal-perf-cottser&extra=baseline-views-field-twig..views-field-twig-static-cache

We found that performance could be measurably improved when the same template is rendered multiple times in a request.

Commits
-------

4ae5385 Add static caching for Twig_Environment::getTemplateClass()
2013-08-04 15:05:27 +02:00
Fabien Potencier 4e7094f6a3 merged branch fabpot/complex-template_from_string (PR #1154)
This PR was merged into the master branch.

Discussion
----------

fixed template_from_string when the template includes or extends other ones

This should fix #1134

Commits
-------

1b5bf91 fixed template_from_string when the template includes or extends other ones
2013-08-04 15:01:42 +02:00
Fabien Potencier 5402a658d5 merged branch fabpot/filesystem-optimizations (PR #1155)
This PR was merged into the master branch.

Discussion
----------

optimized the filesystem loader

* added a cache for templates that do not exist
* sped up Filesystem::exists() by avoiding the creation of exceptions

closes #1096

Commits
-------

d2b97b4 optimized the filesystem loader
2013-08-04 15:01:03 +02:00
Fabien Potencier ce502dc7b6 updated CHANGELOG 2013-08-04 14:55:22 +02:00