Skip to main content

template

Information about the current template.

Properties

The name of the template's parent directory.

Returns nil if the template's parent directory is /templates.

Anchor to
name
string from a set of values

The name of the template's type.

Possible values
404
article
blog
cart
collection
list-collections
customers/account
customers/activate_account
customers/addresses
customers/login
customers/order
customers/register
customers/reset_password
gift_card
index
page
password
product
search

The custom name of an alternate template.

Returns nil if the default template is being used.

{
"directory": null,
"name": "product",
"suffix": null
}
Was this section helpful?