template
The current template.
Available in: Every template.
Properties
Section titled “Properties”| Property | Type | Description |
|---|---|---|
template.name |
string | Type (product, collection…). |
template.suffix |
string | Alternate template suffix, nil for the default. |
template.directory |
string | Always nil. |
Example
Section titled “Example”<body class="template-{{ template.name }}"><body class="template-product">Compatibility
Section titled “Compatibility”Shopify: Same as Shopify.
Since theme platform 1.0.
Was this page helpful?

