Software /
code /
prosody
Diff
AUTHORS @ 13404:034c7af177f0
util.xtemplate: Test the each template function
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")
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 16 Dec 2023 13:47:55 +0100 |
parent | 5403:d7ecf6cd584e |