Fix minor doc bug and update example

This commit is contained in:
Eldon Koyle
2016-03-07 16:15:38 -07:00
parent 94a182a396
commit 621ea93831

View File

@ -99,7 +99,7 @@ The template-parser understands `if` and `foreach` controls and replaces certain
Controls:
- if-else (Else can be omitted):
`{if %placeholder == 'value'}Some Text{else}Other Text{/if}`
`{if %placeholder == value}Some Text{else}Other Text{/if}`
- foreach-loop:
`{foreach %placeholder}Key: %key<br/>Value: %value{/foreach}`
@ -139,7 +139,7 @@ Alert sent to: {foreach %contacts}%value <%key> {/foreach}
Conditional formatting example, will display a link to the host in email or just the hostname in any other transport:
```text
{if %transport == 'mail'}<a href='https://my.librenms.install/device/device=%hostname/'>%hostname</a>{else}%hostname{/if}
{if %transport == mail}<a href='https://my.librenms.install/device/device=%hostname/'>%hostname</a>{else}%hostname{/if}
```
# <a name="transports">Transports</a>