Changes between Version 8 and Version 9 of Usage/TemplatingDocumentation


Ignore:
Timestamp:
07/09/12 16:08:15 (12 years ago)
Author:
ramonb
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Usage/TemplatingDocumentation

    v8 v9  
    6868}}}
    6969
     70
     71== assign ==
     72
     73{{{
     74    """
     75        Variable assignment within template
     76
     77        Usage: {% assign newvar = <space seperated list of strings/vars> %}
     78         i.e.: {% assign file_name = '/var/tmp/rack-' rack.label '.txt' %}
     79    """
     80}}}
     81
     82
     83== getbasenets ==
     84
     85{{{
     86    """
     87        Get list of basenets in a network (name)
     88
     89        Usage: {% getbasenets <network name> as <listname> %}
     90    """
     91}}}
     92
     93== use ==
     94
     95{{{
     96    """
     97        Compilation function to definine Querysets for later use.
     98
     99        Usage: {% use <entity> with <attribute>=<value> as <list/var> <key> %}
     100    """
     101}}}
     102
     103= sections =
     104
     105== epilogue ==
     106
     107Command's to be executed after (epi) the template processing is completed.
     108
     109This can be useful to restart a daemon, for example.
     110
     111== noblanklines ==
     112
     113Prevents any blanklines occuring in the resulting output (file).
     114
    70115== store ==
    71116
     
    79124}}}
    80125
    81 = noblanklines =
    82 
    83 Prevents any blanklines occuring in the resulting output (file).
    84 
    85 = epilogue =
    86 
    87 Command's to be executed after (epi) the template processing is completed.
    88 
    89 This can be useful to restart a daemon, for example.
    90 
    91 = assign =
    92 
    93 {{{
    94     """
    95         Variable assignment within template
    96 
    97         Usage: {% assign newvar = <space seperated list of strings/vars> %}
    98          i.e.: {% assign file_name = '/var/tmp/rack-' rack.label '.txt' %}
    99     """
    100 }}}
    101 
    102 
    103 = getbasenets =
    104 
    105 {{{
    106     """
    107         Get list of basenets in a network (name)
    108 
    109         Usage: {% getbasenets <network name> as <listname> %}
    110     """
    111 }}}
    112 
    113 = use =
    114 
    115 {{{
    116     """
    117         Compilation function to definine Querysets for later use.
    118 
    119         Usage: {% use <entity> with <attribute>=<value> as <list/var> <key> %}
    120     """
    121 }}}