Releasing 3.0.0

This commit is contained in:
Tyler Akins
2023-05-07 21:18:00 -05:00
parent 0617b2ed35
commit 0ce41dedb1
11 changed files with 886 additions and 808 deletions

View File

@@ -9,6 +9,8 @@ foreach() {
foreachContent=$(cat)
local x
x=("${@}")
if [[ "$2" != "as" && "$2" != "in" ]]; then
echo "Invalid foreach - bad format."
elif [[ "$(declare -p "$1")" != "declare -"[aA]* ]]; then
@@ -41,8 +43,8 @@ links=(resque hub rip)
# Process the template
cat <<EOF | mo --allow-function-arguments
Here are your links:
{{#foreach links as link}}
{{#foreach 'links' 'as' 'link'}}
* [{{link.name}}]({{link.url}})
{{/foreach}}
{{/foreach 'links' 'as' 'link'}}
EOF