Charles N Wyble
ba4a78f9c1
git-subtree-dir: vendor/git.knownelement.com/reachableceo/MarkdownResume-Pipeline git-subtree-split: e3ea03999bd0220aea1b987a92b9003ce628038b
20 lines
293 B
Bash
Executable File
20 lines
293 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
cd "$(dirname "$0")" # Go to the script's directory
|
|
|
|
declare -A DATA
|
|
export DATA=([one]=111 [two]=222)
|
|
. ../mo
|
|
|
|
cat <<EOF | mo
|
|
Accessing data directly:
|
|
DATA: {{DATA}}
|
|
One: {{DATA.one}}
|
|
Two: {{DATA.two}}
|
|
|
|
Things in DATA:
|
|
{{#DATA}}
|
|
Item: {{.}}
|
|
{{/DATA}}
|
|
EOF
|