Changes between Version 27 and Version 28 of Usage/TemplatingDocumentation


Ignore:
Timestamp:
07/09/12 17:21:21 (12 years ago)
Author:
ramonb
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Usage/TemplatingDocumentation

    v27 v28  
    1515Without loading this, you cannot use any of the tags below.
    1616
    17 = stringfilters =
    18 
    19 Stringfilters are functions that can pipe or translate a value into a different one.
     17= Stringfilters =
     18
     19Stringfilters 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> }}}
    2022
    2123== arpanize ==
     
    7072 * {{{ 123 }}}
    7173
    72 = functions =
     74= Functions =
    7375
    7476Functions are called with the following syntax:
     
    154156
    155157'''Usage''':
    156  * {% use <entity> with <attribute>=<value> as <list/var> <key> %}
     158 * {% use <entity> with <attribute>=<value> as <variable> %}
    157159
    158160'''Example's''':
     
    162164 * {{{ {% use interface with 'network__name=gina admin' as ifaces_gina_admin %} }}}
    163165
    164 = sections =
     166= Sections =
     167
     168Sections 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}}}
    165174
    166175== epilogue ==