For convenience it would be rather useful if there was a way for me to achieve the following inside my main layout template:
<body class="template--{{ getNameOfPageTemplateHere|replace({ '/':'-', '_':'' }) }}">
Such that a page rendered using the template "blog/_entry" would have the following body tag:
<body class="template--blog-entry">
Is this possible?