Attempting to address shortcomings and whitespace issues

This commit is contained in:
Tyler Akins
2023-04-07 19:35:25 -05:00
parent 8e9fd680d4
commit febd3467c8
123 changed files with 2008 additions and 1137 deletions

24
tests/function Executable file
View File

@@ -0,0 +1,24 @@
#!/usr/bin/env bash
cd "${0%/*}" || exit 1
. ../run-tests
name=Willy
wrapped() {
# This eats the newline in the content
echo "<b>$(cat)</b>"
}
template() {
cat <<EOF
{{#wrapped}}
{{name}} is awesome.
{{/wrapped}}
... this is the last line.
EOF
}
expected() {
cat <<EOF
<b> Willy is awesome.</b>... this is the last line.
EOF
}
runTest