Template
The Template resource renders a Handlebars template with variables and writes the result to a file in the sandbox. For the full field reference, see the Template Reference.
Creating a Template resource
Section titled “Creating a Template resource”Template resources can be created in the Sandbox tab. To create a new Template resource, navigate to the Sandbox tab and click the + button. Under General, select Template.
Start by naming the resource. Note that this is an internal name. Then provide the template content, a destination path, and any variables it needs.
Editing a Template resource
Section titled “Editing a Template resource”To edit a Template resource, select it from the list of existing sandboxes in the Sandbox tab. Make your changes in the configuration panel, then click Add changes to save your updates. See Editing & Publishing for how changes are reviewed and published.
Configuration
Section titled “Configuration”The resource’s Name (internal) is for internal reference and isn’t visible to learners. Configure:
- Source: the source template — a file path or an inline template string. Templates use Handlebars syntax.
- Destination: the destination file path for the processed template.
- Variables: the variables to substitute in the template.
