mo/tests/partial

23 lines
298 B
Plaintext
Raw Normal View History

#!/usr/bin/env bash
cd "${0%/*}" || exit 1
. ../run-tests
2023-05-08 02:18:00 +00:00
export names=( "Tyler" "Abc" )
template() {
cat <<EOF
<h2>Names</h2>
{{#names}}
2023-04-08 04:10:47 +00:00
{{> fixtures/partial.partial}}
{{/names}}
EOF
}
expected() {
cat <<EOF
<h2>Names</h2>
<strong>Tyler</strong>
2023-05-08 02:18:00 +00:00
<strong>Abc</strong>
EOF
}
runTest