Changes between Version 19 and Version 20 of Usage/TemplatingDocumentation
- Timestamp:
- 07/09/12 16:42:13 (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Usage/TemplatingDocumentation
v19 v20 19 19 Stringfilters are functions that can pipe or translate a value into a different one. 20 20 21 == arpanize == 22 23 Converts 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 21 38 == base_net == 22 39 … … 38 55 == ip_last_digit == 39 56 57 Converts a IP (range) to it's last octect 58 59 '''Usage''': 60 * {{{ {{{ <variable>|ip_last_digit }}} }}} 61 62 '''Example's''': 63 * 40 64 {{{ 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 }}} 53 67 }}} 54 68 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 }}} 71 71 72 72 = functions =