The _template_ variable gives you the current template-type. For Example in the File _blog.liquid_ it will give you _blog_, in _product.liquid_ it will give you _product_.