silverbullet/website/API/template.md

265 B

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(queryfrom tag "page" limit 3, tpl[==[ * ${name} ]==])}