Splitting parse function, fixing variable bug

This commit is contained in:
Tyler Akins
2023-04-09 09:51:11 -05:00
parent a237d23a2d
commit 47e10012ee
2 changed files with 192 additions and 77 deletions

9
tests/variable Executable file
View File

@@ -0,0 +1,9 @@
#!/usr/bin/env bash
cd "${0%/*}" || exit 1
. ../run-tests
foo=bar
template="{{#foo}}{{.}} is {{foo}}{{/foo}}"
expected="bar is bar"
runTest