aboutsummaryrefslogtreecommitdiffstats
path: root/util/xtemplate.lua
Commit message (Collapse)AuthorAgeFilesLines
* util.xtemplate: Use same argument order in filters even without 'args'Kim Alvefur2024-10-161-5/+1
| | | | | | | | | 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.
* util.xtemplate: Fix error on applying each() to zero stanzasKim Alvefur2024-07-111-1/+2
|
* util.xtemplate: Adopt {-path-} syntax to strip preceding and/or trailing ↵Kim Alvefur2023-12-091-4/+12
| | | | | | whitespace Seen in some other template languages
* util: Prefix module imports with prosody namespaceKim Alvefur2023-03-171-1/+1
|
* util.xtemplate: Yet another string template libraryKim Alvefur2022-01-241-0/+86
This one takes a stanza as input Roughly based on util.interpolation