mirror of
https://github.com/tests-always-included/mo.git
synced 2024-12-18 16:27:52 +00:00
19 lines
275 B
Bash
Executable File
19 lines
275 B
Bash
Executable File
#!/bin/bash
|
|
|
|
cd "$(dirname "$0")" # Go to the script's directory
|
|
|
|
declare -A DATA
|
|
DATA=([one]=111 [two]=222)
|
|
|
|
cat <<EOF | . ../mo
|
|
Accessing data directly:
|
|
DATA: {{DATA}}
|
|
One: {{DATA.one}}
|
|
Two: {{DATA.two}}
|
|
|
|
Things in DATA:
|
|
{{#DATA}}
|
|
Item: {{.}}
|
|
{{/DATA}}
|
|
EOF
|