Jérémy Derussé
074e46ae33
Upgrade minimal version of php
2019-08-08 00:31:49 +02:00
Fabien Potencier
20d60b5f25
avoid confusion between .. and ..
2019-08-07 16:28:20 +02:00
Fabien Potencier
5c8c41853b
tweaked code
2019-07-12 09:11:27 +03:00
Fabien Potencier
22a1317249
moved tests under tests/
2019-06-30 14:48:27 +02:00
Fabien Potencier
6b8aacd7c3
tweaked an example in the docs
2019-06-27 07:31:21 +02:00
Claudio Zizza
ea7c66447d
Use dir constant for fixtures
2019-06-27 07:29:52 +02:00
Guilliam Xavier
d01e7e0fed
[doc] "map" filter: fix args order (value, key)
2019-06-24 12:54:09 +02:00
Javier Eguiluz
270d4a57a2
[Doc] Minor fixes and removed belittling words
2019-06-20 13:32:09 +02:00
Fabien Potencier
18e3728682
removed docs about overloading
2019-06-04 17:49:11 +02:00
Alex
bf518d2cca
Update the documentation for newly added features
2019-06-03 15:28:27 +02:00
Yonel Ceruto
940641364b
Fix typo in filter doc
2019-05-27 09:59:11 -04:00
Fabien Potencier
cca7007abd
tweaked docs
2019-05-22 15:59:27 +02:00
Jörn Wagner
a05da6dbbe
Add information for when filter filter was added in 2.x branch
...
The current "versionadded" info can be confusing to developers, if they assume 2.9 > 1.41 and don't know that 1.x and 2.x branches are still developed simultaneously.
2019-05-22 15:58:42 +02:00
Fabien Potencier
571929f263
tweaked docs
2019-05-20 09:21:53 +02:00
Hugo Alliaume
847276a6b9
doc(filter): add example of filter without for use
2019-05-20 09:18:47 +02:00
Fabien Potencier
53496d53d8
tweaked docs for macros
2019-05-18 10:33:25 +02:00
Fabien Potencier
d3dcd6d3c5
fixed typo
2019-05-17 14:20:59 +02:00
Douglas Greenshields
b905e02333
update docs for for loop with conditional to reference filter filters
2019-05-17 14:19:50 +02:00
Sebastian Blank
65047482be
Correct Twig_SimpleFilter/Twig_SimpleFunction/Twig_SimpleTest deprecation doc (Revert: moved to namespaced classes by default)
2019-05-14 12:17:20 +02:00
Fabien Potencier
5c15f897c7
added the key to the map and filter filters
2019-05-03 19:04:11 +02:00
Fabien Potencier
175041e01b
removed fn in front of arrow functions
2019-05-03 18:12:19 +02:00
Fabien Potencier
b30bce1139
added "filter", "map", and "reduce" filters
2019-05-03 17:09:12 +02:00
Fabien Potencier
d3acd0bede
fixed markup in docs
2019-05-03 05:45:17 +02:00
Fabien Potencier
bd7ca26497
removed wrong link in docs
2019-04-30 14:26:21 +02:00
Fabien Potencier
61eb901f16
fixed doc markup
2019-04-30 14:23:18 +02:00
Fabien Potencier
bd5c53f1b2
fixed doc indexes
2019-04-30 14:16:53 +02:00
Pablo Schläpfer
e804338b2c
add column filter to index
2019-04-30 14:14:19 +02:00
Fabien Potencier
5ac239ca4f
tweaked the doc
2019-04-27 15:54:47 +01:00
Fabien Potencier
fa836ddfea
tweaked doc markup
2019-04-25 12:14:46 +02:00
Fabien Potencier
6578035968
minor #2980 Tweak escape docs (fabpot)
...
This PR was merged into the 1.x branch.
Discussion
----------
Tweak escape docs
Commits
-------
fb68f487 tweaked escape docs
2019-04-25 12:13:47 +02:00
Fabien Potencier
fb68f487ce
tweaked escape docs
2019-04-25 12:07:29 +02:00
Fabien Potencier
321c9a855c
fixed typo
2019-04-24 19:36:33 +02:00
Fabien Potencier
31a28fcb8f
fixed docs
2019-04-24 19:36:11 +02:00
Fabien Potencier
619bc12f62
added the apply tag
2019-04-24 17:20:47 +02:00
Fabien Potencier
7446a6d89f
tweaked macro docs
2019-04-23 08:35:30 +02:00
Fabien Potencier
6e93c4d0c8
minor #2950 Add a note about escaping (fabpot)
...
This PR was merged into the 1.x branch.
Discussion
----------
Add a note about escaping
closes #2623 , closes #2661
Commits
-------
a83f7e85 added a note about escaping
2019-04-22 09:08:02 +02:00
Fabien Potencier
a83f7e855d
added a note about escaping
2019-04-22 09:04:11 +02:00
Fabien Potencier
8e2f11d165
fixed doc (missing word)
2019-04-22 08:28:53 +02:00
Fabien Potencier
dfa9411310
made escaping on ternary expressions more fine-grained
2019-04-11 17:26:15 +02:00
Fabien Potencier
d7e2e5418c
added the possibility to give a nice name to string templates
2019-04-11 09:55:43 +02:00
Fabien Potencier
96eab472d6
added support for a new whitespace trimming option
2019-04-03 11:34:18 +02:00
Evgeniy Koval
a07b5ea008
Update json_encode.rst
2019-03-28 15:54:38 +01:00
Michael Babker
57beae460b
Add spaceless filter to the index
2019-03-25 13:16:17 -05:00
Fabien Potencier
04408cda3a
tweaked docs for macro
2019-03-11 13:59:54 +01:00
Fabien Potencier
1da95371d1
minor #2870 document support for defining default argument values in the macro tag (olets)
...
This PR was merged into the 1.x branch.
Discussion
----------
document support for defining default argument values in the macro tag
The `macro` tag documentation reads
> Macros differ from native PHP functions in a few ways:
> - Default argument values are defined by using the default filter in the macro body
and provides the example
```twig
{% macro input(name, value, type, size) %}
<input type="{{ type|default('text') }}" name="{{ name }}" value="{{ value|e }}" size="{{ size|default(20) }}" />
{% endmacro %}
```
The implication is that native PHP function-like default argument value definition is not supported.
v1.12 added support for
```twig
{% macro input1(name, value, type = 'text', size = 20) %}
<input type="{{ type }}" name="{{ name }}" value="{{ value|e }}" size="{{ size }}" />
{% endmacro %}
```
This updates the documentation to cover both ways of defining default argument values.
Commits
-------
40c7553a document support for defining default argument values in the macro tag
2019-03-11 13:55:14 +01:00
Fabien Potencier
68bbf5eb85
added a note about the performance of the spaceless filter
2019-03-10 08:59:57 +01:00
Henry Bley-Vroman
40c7553a69
document support for defining default argument values in the macro tag
2019-03-08 09:01:54 -05:00
Fabien Potencier
b823898ee1
added a spaceless filter
2019-03-07 10:18:51 +01:00
Fabien Potencier
f16405f797
tweaked docs
2019-03-05 20:08:13 +01:00
Fabien Potencier
5a2c4f2220
feature #2698 Add max value to random function (SpacePossum)
...
This PR was merged into the 1.x branch.
Discussion
----------
Add max value to random function
Commits
-------
50b27061 Add max value to random function
2019-03-05 20:06:35 +01:00