2016-07-21 12:06:39 +00:00
|
|
|
Mo is a mustache template rendering software written in bash. It inserts
|
|
|
|
environment variables into templates.
|
|
|
|
|
|
|
|
Simply put, mo will change {{VARIABLE}} into the value of that
|
|
|
|
environment variable. You can use {{#VARIABLE}}content{{/VARIABLE}} to
|
|
|
|
conditionally display content or iterate over the values of an array.
|
|
|
|
|
|
|
|
Learn more about mustache templates at https://mustache.github.io/
|
2016-07-27 14:56:33 +00:00
|
|
|
|
|
|
|
Simple usage:
|
|
|
|
|
2020-08-05 20:44:04 +00:00
|
|
|
mo [OPTIONS] filenames...
|
2016-07-27 14:56:33 +00:00
|
|
|
|
2020-08-05 20:44:04 +00:00
|
|
|
Options:
|
|
|
|
|
|
|
|
-u, --fail-not-set
|
2020-10-01 12:42:57 +00:00
|
|
|
Fail upon expansion of an unset variable.
|
2020-08-05 20:44:04 +00:00
|
|
|
-x, --fail-on-function
|
2020-10-01 12:42:57 +00:00
|
|
|
Fail when a function returns a non-zero status code.
|
2020-08-05 20:44:04 +00:00
|
|
|
-e, --false
|
2020-10-01 12:42:57 +00:00
|
|
|
Treat the string "false" as empty for conditionals.
|
2020-08-05 20:44:04 +00:00
|
|
|
-h, --help
|
2020-10-01 12:42:57 +00:00
|
|
|
This message.
|
2020-08-05 20:44:04 +00:00
|
|
|
-s=FILE, --source=FILE
|
2020-10-01 12:42:57 +00:00
|
|
|
Load FILE into the environment before processing templates.
|
|
|
|
Can be used multiple times.
|
2020-08-05 20:44:04 +00:00
|
|
|
|
2023-04-06 02:14:19 +00:00
|
|
|
MO_VERSION=2.4.1
|