Open johns10 opened 3 years ago
Hello @johns10! Attributes on css:
is not supported right now.
You can do it with inline html like this:
<style class="test" type="text/css">
p { background-color: blue; }
</style>
I thought I tried this, but I'll give it another go.
When I use this method, I get:
** (Slime.TemplateSyntaxError) Unexpected indent
INPUT, Line 2, Column 0
p { background-color: blue; }
I tried it like this:
<style class="test" type="text/css">
p { background-color: blue; }
</style>
And like this:
style class="test" type="text/css"
p { background-color: blue; }
I get the same error either way.
I attempted to create a scoped style tag using the
css:
prefix. Based on what I've read about slim, it should supportcss class="myClass"
, but when I attempt to use it like this:it renders like this: