Is it possible to return the name value of the template group? I want to use this value as a class for the body.
I’m needing something similar to the URL Segment Variables, though I don’t think this works on the site index.
For now I’m using embed variables in my templates, and returning the value {class} in the include;
<body class="{embed:class}">{embed="{include_header}" class="index"}Though, I don’t see why there wouldn’t be something global for the template group name (eg: {template_group}).
<body class="{template_group}">I could use this variable directly in my include, without having to specify embed variables on every template that includes this.
Does a variable for this exist? Or I could write a conditional for {if !segment_1} ..