aboutsummaryrefslogtreecommitdiffstats
path: root/spec/util_xtemplate_spec.lua
Commit message (Collapse)AuthorAgeFilesLines
* util.xtemplate: Test the each template functionKim Alvefur2023-12-161-0/+8
| | | | | | | | It iterates over childtags, so a template like {foo|each{...}} would be equivalent to root:childtags("foo"), while a deeper query needs the bit that becomes arguments to :childtags as an argument to each, e.g. {foo/bar|each(baz)} would behave like root:get_child("foo"):get_child("bar"):childtags("baz")
* util.xtemplate: Add some initial testsKim Alvefur2023-12-091-0/+35
Strict typing does not magically make code correct