Files
plainleaf/website/API/template.md
T
2025-01-14 20:26:47 +01:00

10 lines
265 B
Markdown

Template functions that use the [[API/global#tpl(template)]] function.
## template.each(collection, template)
Iterates over a collection and renders a template for each item.
Example:
${template.each(query[[from tag "page" limit 3]], tpl[==[
* ${name}
]==])}