599 B
599 B
#meta
A work-in-progress library of generally useful templates for rendering queries.
-- Renders a page object as a linked list item
templates.pageItem = template.new([==[
* [[${name}]]
]==])
-- Renders a task object as a togglable task
templates.taskItem = template.new([==[
* [${state}] [[${ref}]] ${name}
]==])
Examples
template.pageItem
:
${template.each(queryfrom index.tag "page" limit 3, templates.pageItem)}
template.taskItem
:
- Task 1
- Task 2