Update man page for ESH
This commit is contained in:
parent
71ecf27291
commit
7f48942934
1 changed files with 10 additions and 4 deletions
14
yadm.1
14
yadm.1
|
@ -637,8 +637,14 @@ upon
|
|||
which is available on most *nix systems. To use this processor,
|
||||
specify the value of "default" or just leave the value off (e.g. "##template").
|
||||
.TP
|
||||
.B esh
|
||||
To use the esh template processor, specify the value of "esh"
|
||||
.B ESH
|
||||
ESH is a template processor written in POSIX compliant shell. It allows
|
||||
executing shell commands within templates. This can be used to reference your
|
||||
own configurations within templates, for example:
|
||||
|
||||
<% yadm config mysection.myconfig %>
|
||||
|
||||
To use the ESH template processor, specify the value of "esh"
|
||||
.TP
|
||||
.B j2cli
|
||||
To use the j2cli Jinja template processor, specify the value of "j2" or
|
||||
|
@ -657,7 +663,7 @@ to create or overwrite files.
|
|||
|
||||
During processing, the following variables are available in the template:
|
||||
|
||||
Default Jinja & Esh Description
|
||||
Default Jinja or ESH Description
|
||||
------------- ------------- --------------------------
|
||||
yadm.class YADM_CLASS Locally defined yadm class
|
||||
yadm.distro YADM_DISTRO lsb_release -si
|
||||
|
@ -705,7 +711,7 @@ would look like:
|
|||
config=dev-whatever
|
||||
{% endif -%}
|
||||
|
||||
And an equivalent esh named
|
||||
An equivalent ESH templated named
|
||||
.I whatever##template.esh
|
||||
would look like:
|
||||
|
||||
|
|
Loading…
Reference in a new issue