Templates (hbs/)

Handlebars. _layout.hbs wraps every page — the rendered page lands in the triple-braced body variable: {{{body}}}. Every *.hbs file is also registered as a partial, so any template can be included with {{> name}}.

context variableavailable in
rows, total, per_page, next_cursorpages with a list view (limit set)
rowpages with a single-row view
paramsalways: path and query parameters

Loop example: {{#each rows}} … {{title}} … {{/each}}, with {{else}} for the empty state. Raw HTML from data (like this article body) is printed with triple braces.

← All articles in this group