Skip to Content

Template

The template object provides information about the current page template, such as its name, directory, and suffix.

Usage Example

{%- comment -%} Show template info for debugging {%- endcomment -%} <p>Template: {{ template.name }}</p> <p>Directory: {{ template.directory }}</p> <p>Suffix: {{ template.suffix }}</p>

Properties

directory

Returns the directory of the template.

name

Returns the name of the template.

suffix

Returns the suffix of the template.

Last updated on