mirror of
https://github.com/tests-always-included/mo.git
synced 2024-12-18 16:27:52 +00:00
1c03949107
This is based off of pull request #10 from @athieriot. Thanks for the idea! I've implemented it as a flag and an environment variable that can be enabled. I've also added another test to handle the environment variable.
17 lines
631 B
Plaintext
17 lines
631 B
Plaintext
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/
|
|
|
|
Simple usage:
|
|
|
|
mo [--false] [--help] [--source=FILE] filenames...
|
|
|
|
--false - Treat the string "false" as empty for conditionals.
|
|
--help - This message.
|
|
--source=FILE - Load FILE into the environment before processing templates.
|