$page->template()

Returns the name of the used template for the page. Will return default if the intended template cannot be found.

Example

<?php echo $page->template() ?>