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
Fabien Potencier
eaa29417ba
fixed doc markup
2019-03-05 11:07:38 +01:00
Nat Zimmermann
97d9dc0404
Encourage using prepared statements
2019-03-02 08:49:36 +01:00
Fabien Potencier
ab02b24f91
improved the tag documentation
2019-02-26 18:57:58 +01:00
Fabien Potencier
4f9d21fbce
fixed wrong version in docs
2019-02-25 09:38:34 +01:00
Fabien Potencier
571cf6e984
improved documentation on tags
2019-02-25 09:34:06 +01:00
SpacePossum
50b270613d
Add max value to random function
2019-02-17 14:14:54 +01:00
Fabien Potencier
3632a46e82
moved to namespaced classes by default
2019-02-15 08:28:49 +01:00
Fabien Potencier
db751d62d3
fixed some class names
2019-02-15 08:28:49 +01:00
Fabien Potencier
2d9024843f
added some docs about the difference between the include tag and the include function
2019-02-13 09:34:17 +01:00
Lesik
e773c8fc9c
Fix typo
2019-01-15 08:54:07 +01:00
Fabien Potencier
a4ebc27300
minor #2802 Add missing information in the precedence paragraph (fabpot)
...
This PR was merged into the 1.x branch.
Discussion
----------
Add missing information in the precedence paragraph
closes #2766
closes #2728
closes #2731
Commits
-------
fb511950 added missing information in the precedence paragraph
2019-01-12 02:59:44 +01:00
Fabien Potencier
fb51195059
added missing information in the precedence paragraph
2019-01-12 02:55:55 +01:00
rosier
c760d62a67
Add missing ]
2019-01-11 20:02:58 +01:00
Fabien Potencier
a2c4253406
enabled short array notation in docs
2019-01-08 11:56:48 +01:00
Alexander Schranz
7266c9ade1
Added hint that the php c extension is only for php5
2018-12-16 22:09:22 +01:00
Fabien Potencier
e3790ab03c
tweaked previous merge
2018-12-16 12:04:48 +01:00
LavaSlider
bf529d0a7a
Enhances join filter for natural language join (i.e., \"A, B and C\")
2018-12-16 11:41:42 +01:00
Fabien Potencier
f2b8e9acad
fiwed internal link
2018-10-12 07:15:08 -07:00