2 ms·
Easy way to do this in e.g. Rails: <body style="foo bar baz env-#{Rails.environment}"> Then use CSS like you would normally on body.env-production, body.env
by patio11 11y ago
Easy way to do this in e.g. Rails:
<body style="foo bar baz env-#{Rails.environment}">
Then use CSS like you would normally on body.env-production, body.env-development, etc.
- hobarrera 11y agoYou meant class, not style. But great tip though: <body class="foo bar baz env-#{Rails.environment}">