mo/tests/partial

22 lines
262 B
Plaintext
Raw Normal View History

#!/usr/bin/env bash
cd "${0%/*}" || exit 1
. ../run-tests
names=( "Tyler" )
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>
EOF
}
runTest