Assemble includes the handlebars-helpers library as a dependency, so more than 100 Handlebars helpers ofrom that library are available by default.
Most helpers from handlebars-helpers can be used with any Handlebars project, but a handful of helpers were created specifically for Assemble, including:
path/to/variables.md
. Usage: {{dirname [path]}}
variables.md
. Usage: {{filename "docs/toc.md"}}
pagename
.variables
Usage: {{base "docs/toc.md"}}
.md
Usage: {{extension "docs/toc.md"}}
extension
.{{relative [from] [to]}}
. This can also be used with page
and pages
.{{#markdown}}{{/markdown}}
{{md [path]}}
{{embed 'path/to/file.js'}}
or {{embed 'path/to/file.hbs' 'html'}}
{{jsfiddle [id] [tabs]}}
{{gist [id] [file]}}
Many additional helpers are available in the following categories:
assemble
collections
comparisons
dates
file
html
inflections
logging
markdown
math
miscellaneous
numbers
objects
path
special
strings
url
Visit the helper documentation to learn more →
See the template for this page →
Find an error? Let us know →