Skip to content

Commit 1e84ae9

Browse files
committed
Added Tests
1 parent fcb1bce commit 1e84ae9

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

reference/twig_reference.rst

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ Symfony2 Twig Extensions
55
========================
66

77
Twig is the default template engine for Symfony2. By itself, it already contains
8-
a lot of build-in functions, filters and tags (`http://twig.sensiolabs.org/documentation`_
8+
a lot of build-in functions, filters, tags and tests (`http://twig.sensiolabs.org/documentation`_
99
then scroll to the bottom).
1010

1111
Symfony2 adds more custom extension on top of Twig to integrate some components
1212
into the Twig templates. Below is information about all the custom functions,
13-
filters and tags that are added when using the Symfony2 Core Framework.
13+
filters, tags and tests that are added when using the Symfony2 Core Framework.
1414

1515
There may also be tags in bundles you use that aren't listed here.
1616

@@ -118,6 +118,15 @@ Tags
118118
| ``{% endtranschoice %}`` | |
119119
+---------------------------------------------------+-------------------------------------------------------------------+
120120

121+
Tests
122+
-----
123+
124+
+---------------------------------------------------+------------------------------------------------------------------------------+
125+
| Test Syntax | Usage |
126+
+===================================================+==============================================================================+
127+
| ``selectedchoice(choice, selectedValue)`` | This will return ``true`` if the choice is selected for the given form value |
128+
+---------------------------------------------------+------------------------------------------------------------------------------+
129+
121130
Global Variables
122131
----------------
123132

0 commit comments

Comments
 (0)