Commit graph

5 commits

Author SHA1 Message Date
Kim Alvefur
2ef0e122fd util.xtemplate: Use same argument order in filters even without 'args'
This removes the different argument order used between '{x|foo}' and
'{x|foo(y)}' because the differing order was awkward and confusing.

This util does not seem to be widely used so should not be problematic
to change this part. The only known use is in mod_pubsub, which does not
use the filter function feature.
2024-10-16 16:15:05 +02:00
Kim Alvefur
8a96854733 util.xtemplate: Fix error on applying each() to zero stanzas 2024-07-11 15:04:29 +02:00
Kim Alvefur
c61c78447b util.xtemplate: Adopt {-path-} syntax to strip preceding and/or trailing whitespace
Seen in some other template languages
2023-12-09 14:57:41 +01:00
Kim Alvefur
43531740f9 util: Prefix module imports with prosody namespace 2023-03-17 16:23:16 +01:00
Kim Alvefur
7e65b1deef util.xtemplate: Yet another string template library
This one takes a stanza as input

Roughly based on util.interpolation
2022-01-24 23:54:32 +01:00