I'm working on a Meteor project that has various Routes set up.
Within one of my css files, I currently have the following styling for the body:
body {
font-family: 'Roboto', sans-serif;
font-size: 17px;
font-weight: 400;
color: #888;
background-image: url("/images/bg.png");
line-height: 30px;
text-align: center;
}
Now, I'd like to have a different background image for the body when navigating to different Routes and rendering distinct templates. Is there a tailored solution within Meteor's capabilities to manage this? I prefer avoiding jQuery as it is not what I am looking for - instead, seeking a reactive approach.
Is there a way to establish a global helper for the body similar to
<body class="{{classWithDifferentBackground}}">
that dynamically assigns the correct class based on the route, in order to let separate CSS classes handle the background image for the body?
Appreciate any advice or insights you can offer on this matter!