mirror of
https://github.com/tests-always-included/mo.git
synced 2025-11-20 07:44:33 +01:00
Showing how to write output that includes braces
This commit is contained in:
12
demo/writing-out-braces
Executable file
12
demo/writing-out-braces
Executable file
@@ -0,0 +1,12 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
cd "$(dirname "$0")" # Go to the script's directory
|
||||||
|
|
||||||
|
|
||||||
|
export OPEN="{{"
|
||||||
|
export CLOSE="}}"
|
||||||
|
cat <<'EOF' | mo
|
||||||
|
You can use environment variables to write output that has double braces.
|
||||||
|
|
||||||
|
{{OPEN}}sampleTag{{CLOSE}}
|
||||||
|
EOF
|
||||||
Reference in New Issue
Block a user