aboutsummaryrefslogtreecommitdiffstats
path: root/spec/util_xtemplate_spec.lua
Commit message (Collapse)AuthorAgeFilesLines
* util.stanza: Handle namespace prefixes for attributes in :find()Kim Alvefur5 days1-3/+2
| | | | | | More correct handling of namespaces here. This works with both prefixes from the parser and hacky .attr["foo:bar"]
* util.xtemplate: Fix error on applying each() to zero stanzasKim Alvefur2024-07-111-0/+4
|
* 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