Information about the current template.

PropertiesTypeDescription
directorystringThe name of the template's parent directory.

Returns nil if the template's parent directory is /templates.
namestring from a set of values, refer to name valuesThe name of the template's type.
suffixstringThe custom name of an alternate template.
typenumberThe type of template.

name values

Possible values
404
addresses
article
blog
cart
collection
login
index
order
order_verify
page
product
register
reset_password
reset_success
search
{
  "directory": "",
  "name": "order",
  "type": 35,
  "suffix": "default"
}