---
layout: default
title: template
nav:
group: Liquid Variables
---
# template
template returns the name of the template used to render the current page, with the .liquid extension omitted.
Input
{% highlight html %}{% raw %}
{{ template }}
{% endraw %}{% endhighlight %}
Output
{% highlight html %}{% raw %}
index
{% endraw %}{% endhighlight %}