Commit Graph

65 Commits

Author SHA1 Message Date
Fabien Potencier 4299df571b tweaked previous merge (refs #1114) 2013-06-27 08:19:57 +02: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 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 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
specialguest c6ef23ab1d Update striptags.rst 2013-03-18 15:20:21 +01:00
carlwitt 59d0eed9f7 Update merge.rst
Typo in first line:
The merge filter merges an array with [removed: the] another array
2013-03-04 10:54:34 +01:00
Tobias Schultze fcf9525dc3 let url_encode filter also accept array of query parameters 2013-02-26 14:03:39 +01:00
Fabien Potencier 15336c154c ordered tags, filters, functions, and tests in doc indexes 2013-02-21 07:47:52 +01:00
Fabien Potencier a50bc8c95b added a batch filter 2013-02-21 07:38:58 +01:00
Fabien Potencier f8d4db4107 added the first and last filters (closes #951) 2013-01-26 16:59:11 +01:00
Fabien Potencier d10ebfa3d4 added support for {{ some_string[:2] }} (closes #952) 2013-01-08 15:19:19 +01:00
Javier Eguiluz 33539fcab3 Fixed a typo in the 'escape' filter documentation.
This typo prevents the proper rendering of one code block.
2012-12-06 19:40:31 +01:00
Vincent Terraillon c3281bbd03 Update doc/filters/split.rst
Added missing quotes in return values.
2012-11-22 11:21:50 +01:00
Fabien Potencier a59dcde3c2 added support for named arguments for filters, tests, and functions 2012-11-15 10:23:32 +01:00
Fabien Potencier 96b3ce6bd6 merged branch fabpot/timezones (PR #876)
This PR was merged into the master branch.

Commits
-------

f99504a changed the date filter behavior to always apply the default timezone, except if false is passed as the timezone
d3b0cbd merged branch jmikola/patch-1 (PR #845)
a6a1ef0 Avoid setting timezones on DateIntervals

Discussion
----------

changed the date filter behavior to always apply the default timezone, except if false is passed as the timezone

This PR is based on #845, and addresses issue #778.

Right now, the timezone management when using the date filter is counter-intuitive. When you pass a DateTime object, the default timezone is not applied, but in all other cases, it is.

This PR makes the behavior more consistent by always applying the default timezone (which is probably what users want most of the time), and this can be disabled by explicitly passing ``false`` as the timezone value.

This is a BC break but I think that not many consciously rely on the current behavior.

---------------------------------------------------------------------------

by fabpot at 2012-10-30T15:49:13Z

@jmikola Can you have a look at this PR and tell me your opinion about this change?

---------------------------------------------------------------------------

by jmikola at 2012-11-02T20:17:30Z

@fabpot: Will take a look at this tonight. I missed the notifications as I was offline for a few days.

---------------------------------------------------------------------------

by jmikola at 2012-11-03T04:09:54Z

I read through all of the issues and PR's and this looks reasonable. Are we missing a test case for passing in a DateTime object with `false` for the timezone? I do see one example where we render the current date using the `'e'` format string and provide `false` for the timezone, but that's it.

---------------------------------------------------------------------------

by fabpot at 2012-11-03T07:09:08Z

ok, I've added an additional test just to be sure.
2012-11-03 08:09:43 +01:00
Fabien Potencier f99504ae02 changed the date filter behavior to always apply the default timezone, except if false is passed as the timezone 2012-11-03 08:08:37 +01:00
Fabien Potencier 1881045806 added a note about double-escaping when using a variable for the strategy (closes #868) 2012-10-30 10:27:26 +01:00
Fabien Potencier bc64a7f7fa updated CHANGELOG 2012-10-18 14:01:42 +02:00
Fabien Potencier 3506cfad1d added missing version info in the docs for the split filter 2012-10-18 08:21:41 +02:00
Fabien Potencier bac6bc7851 fixed previous merge 2012-10-16 14:39:58 +02:00
Fabien Potencier a2981f7d8c merged branch innsand/split-filter_fix (PR #811)
This PR was merged into the master branch.

Commits
-------

d5df200 * bug fixes. * str_split on empty delimeter. * tests and documentation updated.
e3c201a Added "split" filter aka explode.

Discussion
----------

Split filter fix

Modification of request #621:
str_split, bug fixes

---------------------------------------------------------------------------

by senz at 2012-08-21T05:56:51Z

@fabpot this is squashed and fixed (hopefully) #621
2012-10-16 14:33:18 +02:00
Fabien Potencier da34d73b4a fixed blanks in the doc 2012-09-29 18:04:58 +02:00
Fabien Potencier 2f7b43be74 fixed a doc anchor 2012-09-29 18:01:41 +02:00
Konstantin G Romanov d5df200c75 * bug fixes.
* str_split on empty delimeter.
* tests and documentation updated.
2012-08-21 15:13:47 +04:00
Tyler King e3c201ad55 Added "split" filter aka explode. 2012-08-18 20:52:25 +04:00
Sergi de Pablos b98fff166e Added missing abs and date_modify functions to the filters toctree 2012-08-07 10:31:19 +02:00
Fabien Potencier 1d1b949150 fixed typo in previous merge 2012-07-18 23:05:29 +02:00
Nami-Doc a6f03bd5c1 Reverse argument for number_format 2012-07-15 14:50:43 +03:00
Fabien Potencier 7657c01e65 added support for more escaping strategies (url, css, and html_attr) 2012-06-27 09:26:36 +02:00
Fabien Potencier cd049dac38 tweaked previous commit 2012-06-26 18:24:26 +02:00
Jordi Boggiano ae85586e6f Add docs for date_modify 2012-06-20 19:45:35 +02:00
Jordi Boggiano 0366cf6185 Fix docs of date filter 2012-06-20 19:45:27 +02:00
Fabien Potencier 793660510f fixed doc (closes #744) 2012-06-14 15:07:01 +02:00
Maarten de Keizer f0a0036892 Add abs filter
including unit test and documentation
2012-05-28 22:27:26 +02:00
Fabien Potencier d458e8c892 tweaked doc for the escape filter 2012-04-25 07:35:12 +02:00
Fabien Potencier 53e89ef2eb fixed doc indexes 2012-04-03 09:07:53 +02:00
cb bf0cc537e3 Added code snippet to documentation to describe handling null values with date filter 2012-03-22 13:12:09 -05:00
Fabien Potencier a4fa6db03b added documentation for the trim filter 2012-03-22 14:34:27 +01:00
Raul Fraile 0519419bfd Updated 'convert_encoding' filter documentation 2012-03-13 17:33:49 +01:00
Fabien Potencier e9cfd2ec85 fixed typos in the doc 2012-02-29 22:00:20 +01:00
Fabien Potencier 4dee4e5841 updated the CHANGELOG and documentation for previous merge 2012-02-15 17:29:31 +01:00
Fabien Potencier 8256bfa05c added missing entry in the doc 2012-01-31 11:57:59 +01:00