Commit Graph

810 Commits

Author SHA1 Message Date
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 3db6b6aeb9 fixed markup 2013-08-28 08:01:53 +02:00
Katherine Senzee bd1cb91251 grammar and punctuation fixes 2013-08-27 15:48:13 -07:00
oktron 8d93a1e454 Add missing apostrophe 2013-08-07 11:02:14 +02:00
Fabien Potencier 7b80c942e2 removed usage of deprecated constants 2013-08-05 18:25:53 +02:00
Fabien Potencier 8b576e08f2 fixed versions in docs 2013-08-04 13:34:56 +02:00
Fabien Potencier 0559cacfaf tweaked documentation about overloading existing filters, ... (closes #1094) 2013-08-04 08:56:55 +02:00
Fabien Potencier 6c5f966045 added a note about how to use our PEAR channel to install the Twig C extension 2013-08-03 19:28:06 +02:00
Martin Hasoň 3004ba19d4 Added support for directly call macros defined in the same template 2013-07-29 23:14:04 +02:00
Martin Hasoň 63615a6cc3 Added support for named arguments for macros 2013-07-29 23:13:25 +02:00
Fabien Potencier 3e6e70e228 fixed a typo in the docs (closes #1136) 2013-07-13 21:17:34 +02:00
Fabien Potencier e142fcad9a fixed a typo in the docs (closes #1137) 2013-07-13 21:15:14 +02:00
Mark Story da06f59033 Add more complete documentation for building tests. 2013-07-05 13:12:07 -04:00
Fabien Potencier 4299df571b tweaked previous merge (refs #1114) 2013-06-27 08:19:57 +02:00
Fabien Potencier ca54a9f325 merged branch LouTerrailloune/patch-2 (PR #1114)
This PR was merged into the master branch.

Discussion
----------

Update url_encode.rst

Documented hidden feature to use rawurlencode.

Commits
-------

594e2db Update url_encode.rst
2013-06-27 08:19:31 +02:00
Matt Janssen 2861befc42 Updated {% spaceless %} example to show how spaces in strings are handled.
Updated output to show space is preserved within `<div><strong>foo bar</strong></div>` HTML.
2013-06-26 14:20:02 -05:00
Igor Santos fb3fdac64f Update include.rst
Fixing typo: "Twig will ignore the statement if the template to be *ignored* does not exist."
2013-06-08 17:56:44 -03:00
Vincent Terraillon 594e2db830 Update url_encode.rst
Documented hidden feature to use rawurlencode.
2013-06-07 11:55:43 +03:00
Martin Hasoň 3c6362697c Fixed typo in doc for the reverse filter 2013-06-06 22:55:44 +02:00
Fabien Potencier 11d2079104 added documentation for the preverse_keys argument of the reverse filter (closes #1112) 2013-06-06 07:56:57 +02:00
Fabien Potencier e8be092e18 merged branch luiges90/patch-1 (PR #1107)
This PR was merged into the master branch.

Discussion
----------

Update slice.rst

I was (somehow) misled by the example, thinking `'1234'[2:]` outputs `34` because it `2:` mean copy the last 2 characters...

This happens when you are in a hurry and didn't look into the text.

Let makes it less ambiguous.

Commits
-------

3ddff67 Update slice.rst
2013-05-29 09:19:45 +02:00
Johnny Robeson 5746c11153 change mention of print to sprintf in format filter
The format specifiers are actually mentioned on the [sprintf(http://php.net/sprintf)] page
2013-05-29 04:15:52 -03:00
Peter WONG 3ddff676f8 Update slice.rst
I was (somehow) misled by the example, thinking `'1234'[2:]` outputs `34` because it `2:` mean copy the last 2 characters...

This happens when you are in a hurry and didn't look into the text.

Let makes it less ambiguous.
2013-05-29 11:18:36 +08:00
Fabien Potencier fd9643071c fixed doc markup (closes #1106) 2013-05-27 08:04:18 +02:00
Fabien Potencier b081e3f1ed tweaked previous merge (refs #1103) 2013-05-25 17:56:42 +02:00
Fabien Potencier 6726e60155 merged branch kimu/patch-1 (PR #1103)
This PR was squashed before being merged into the master branch (closes #1103).

Discussion
----------

Added info about variable declarations inside a loop

Commits
-------

d5f4ec3 Added info about variable declarations inside a loop
2013-05-25 17:52:49 +02:00
kimu d5f4ec309b Added info about variable declarations inside a loop 2013-05-25 17:52:49 +02:00
DieterDePaepe 550503ec2d Add missing semicolon 2013-05-25 14:42:31 +02:00
Fabien Potencier 6939565867 added support for object instances as the second argument of the constant test (closes #1100) 2013-05-23 18:28:53 +02:00
Simon Constans e9c197967f fix documentation code block 2013-05-13 22:34:50 +02:00
Bilal Amarni 12a5d026ed [doc] switched a BC call 2013-05-13 13:14:39 +02:00
Fabien Potencier 135b618ff9 enforced usage of named arguments after positional ones 2013-05-01 20:07:00 +02:00
Fabien Potencier 2acd63ae31 added a precedence example (refs #1057) 2013-05-01 10:03:10 +02:00
Fabien Potencier 04bc0698cc added missing operators in the precedence docs (closes #1057) 2013-05-01 08:53:54 +02:00
Fabien Potencier b7abf4d5e5 tweaked docs for the set tag (closes #1029) 2013-05-01 07:02:11 +02:00
Sema da635ba7ca Fixes typo 2013-04-27 19:59:05 +04:00
Jez Halford c155932490 Made macro doc clearer
Previous wording implied (to me at least) that macros *are* PHP functions.
2013-04-24 16:03:23 +02:00
Ryan Weaver 28673b1876 Fixed small typo in link for "pre-built DLL"
This fixes a link that wasn't generating correctly.
2013-04-17 09:01:55 -03:00
Luis Cordova a4daa4ca94 update 2013-04-13 12:53:49 -05:00
Luis Cordova 6a25c5db56 improve readability 2013-04-13 12:42:07 -05:00
Luis Cordova e3b9e99d4d typo 2013-04-13 00:37:28 -05:00
Fabien Potencier 481abb8332 tweaked previous merge 2013-04-08 14:11:21 +02:00
Ben 742043f9e2 Update json_encode.rst
a more-useful description of the "options" argument >_>
2013-04-01 18:30:05 -03:00
Fabien Potencier e8991cc2f9 tweaked previous merge 2013-03-25 08:43:31 +01:00
Fabien Potencier 34b03285ad merged branch beryllium/patch-1 (PR #1032)
This PR was merged into the master branch.

Discussion
----------

Adding a section about the slice filter to doc/tags/for.rst

This code example shows how to loop over a subset of values in order to implement one common use-case of "break" in PHP. I decided to use the "full" notation of slice rather than the sugared version (that example would just be "for user in users[:10]")

Commits
-------

202641a Adding link to slice filter per Stof's suggestion
8ebbaaa Adding a section about the slice filter
2013-03-25 08:42:48 +01:00
Fabien Potencier 2f14935e62 merged branch ricardclau/typo_sort_doc (PR #1039)
This PR was merged into the master branch.

Discussion
----------

Minor typo in sort filter documentation

I've found this small typo while working on shuffle filter documentation in https://github.com/fabpot/Twig/pull/1038

I decided to create separate PR in case https://github.com/fabpot/Twig/pull/1038 got rejected

Best regards!

Commits
-------

1443b76 minor typo in sort documentation
2013-03-25 08:41:44 +01:00
Tom Corrigan bb05942153 Fix filename for batch filter documentation 2013-03-25 16:00:17 +11:00
Ricard Clau 1443b765e1 minor typo in sort documentation 2013-03-24 13:27:05 +01:00
Kevin Boyd 202641a084 Adding link to slice filter per Stof's suggestion 2013-03-18 09:31:54 -07:00
specialguest c6ef23ab1d Update striptags.rst 2013-03-18 15:20:21 +01:00