Changes between Version 19 and Version 20 of Usage/TemplatingDocumentation


Ignore:
Timestamp:
07/09/12 16:42:13 (12 years ago)
Author:
ramonb
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Usage/TemplatingDocumentation

    v19 v20  
    1919Stringfilters are functions that can pipe or translate a value into a different one.
    2020
     21== arpanize ==
     22
     23Converts a IP (range) to reversed DNS style arpa notation
     24
     25'''Usage''':
     26 * {{{ {{{ <variable>|arpanize }}} }}}
     27
     28'''Example's''':
     29 *
     30{{{
     31{% assign broadcast = '192.168.1.0' %}
     32{{{ broastcast|arpanize }}}
     33}}}
     34
     35'''Example output''':
     36 * {{{ 1.168.192.in-addr.arpa }}}
     37
    2138== base_net ==
    2239
     
    3855== ip_last_digit ==
    3956
     57Converts a IP (range) to it's last octect
     58
     59'''Usage''':
     60 * {{{ {{{ <variable>|ip_last_digit }}} }}}
     61
     62'''Example's''':
     63 *
    4064{{{
    41     """
    42         Converts a IP (range) to it's last octect
    43 
    44         Usage:
    45             {{{ <variable>|ip_last_digit }}}
    46 
    47         I.e.:
    48             {% assign myip = '192.168.1.123' %}
    49             {{{ myip|ip_last_digit }}}
    50         Results in output:
    51             123
    52     """
     65{% assign myip = '192.168.1.123' %}
     66{{{ myip|ip_last_digit }}}
    5367}}}
    5468
    55 == arpanize ==
    56 
    57 {{{
    58     """
    59         Converts a IP (range) to reversed DNS style arpa notation
    60 
    61         Usage:
    62             {{{ <variable>|arpanize }}}
    63 
    64         I.e.:
    65             {% assign broadcast = '192.168.1.0' %}
    66             {{{ broastcast|arpanize }}}
    67         Results in output:
    68             1.168.192.in-addr.arpa
    69     """
    70 }}}
     69'''Example output''':
     70 * {{{ 123 }}}
    7171
    7272= functions =