How would one go about creating a dynamic class?
Such as?
{# On the homepage #}
<body class="myClass-home">
...
</body>
{# On the about page #}
<body class="myClass-about">
...
</body>
I tried to use a filter like:
<body class="myClass-{{ this.page.title }}">
...
</body>
The twig markup spit it out, but the problem arises that "About Me" for the title would output:
<body class="myClass-About Me">
...
</body>
What would be a better solution for this to get it formatted nicely?