mirror of
https://github.com/tests-always-included/mo.git
synced 2025-11-19 23:34:32 +01:00
Adding more demo files
This commit is contained in:
9
demo/using-arrays
Executable file
9
demo/using-arrays
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
cd "$(dirname "$0")" # Go to the script's directory
|
||||
export ARRAY=( one two "three three three" four five )
|
||||
cat << EOF | . ../mo
|
||||
Here are the items in the array:
|
||||
{{#ARRAY}}
|
||||
* {{.}}
|
||||
{{/ARRAY}}
|
||||
EOF
|
||||
Reference in New Issue
Block a user