Skip to content
This repository has been archived by the owner on Apr 19, 2024. It is now read-only.

Building templates

Alan Harnum edited this page Apr 28, 2023 · 1 revision

Working with Templates

The Jamstack Toolkit is built on top of the Eleventy static site generator; you can refer to Eleventy's documentation on template usage in general for many questions about working with templates.

This documentation specifically focuses on features or customizations in the Jamstack Toolkit related to building and managing templates.

Template Globals

A number of useful template globals are defined for convenience in src/_includes/core/layout.njk, under the templateGlobals namespace. Notably for common use cases:

  • templateGlobals.assetsRoot is a relative reference to the deployed location of the src/assets folder
  • templateGlobals.designSystemRoot is a relative reference to the deployed location of the Ontario Design System assets
Clone this wiki locally