Update man page for ESH

This commit is contained in:
Tim Byrne 2020-07-08 01:45:33 -05:00
parent 71ecf27291
commit 7f48942934
No known key found for this signature in database
GPG Key ID: 14DB4FC2465A4B12
1 changed files with 10 additions and 4 deletions

14
yadm.1
View File

@ -637,8 +637,14 @@ upon
which is available on most *nix systems. To use this processor, 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"). specify the value of "default" or just leave the value off (e.g. "##template").
.TP .TP
.B esh .B ESH
To use the esh template processor, specify the value of "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 .TP
.B j2cli .B j2cli
To use the j2cli Jinja template processor, specify the value of "j2" or 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: 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.class YADM_CLASS Locally defined yadm class
yadm.distro YADM_DISTRO lsb_release -si yadm.distro YADM_DISTRO lsb_release -si
@ -705,7 +711,7 @@ would look like:
config=dev-whatever config=dev-whatever
{% endif -%} {% endif -%}
And an equivalent esh named An equivalent ESH templated named
.I whatever##template.esh .I whatever##template.esh
would look like: would look like: