Changes between Version 27 and Version 28 of Usage/TemplatingDocumentation
- Timestamp:
- 07/09/12 17:21:21 (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Usage/TemplatingDocumentation
v27 v28 15 15 Without loading this, you cannot use any of the tags below. 16 16 17 = stringfilters = 18 19 Stringfilters are functions that can pipe or translate a value into a different one. 17 = Stringfilters = 18 19 Stringfilters are functions that can pipe or translate a value into a different one. It's syntax is always through the use of a pipe: 20 * {{{ 'string'|<stringfilter> }}} 21 * {{{ <variable>|<stringfilter> }}} 20 22 21 23 == arpanize == … … 70 72 * {{{ 123 }}} 71 73 72 = functions =74 = Functions = 73 75 74 76 Functions are called with the following syntax: … … 154 156 155 157 '''Usage''': 156 * {% use <entity> with <attribute>=<value> as < list/var> <key> %}158 * {% use <entity> with <attribute>=<value> as <variable> %} 157 159 158 160 '''Example's''': … … 162 164 * {{{ {% use interface with 'network__name=gina admin' as ifaces_gina_admin %} }}} 163 165 164 = sections = 166 = Sections = 167 168 Sections are used to indicate the tag will only affect the section contained therein. Sections always have a opening and closing tag and can contain arguments: 169 * 170 {{{ 171 {% <section> [arguments] %} 172 {% <endsection> %} 173 }}} 165 174 166 175 == epilogue ==