Closed niallrr closed 4 years ago
Just found a workaround
"data-toggle"="layout",
"data-action"="sidebar_close"
Hi, yes, that's the right way. Proc macros in Rust work with Rust tokens, so there's no way to distinguish between data - toggle = "layout"
and data-toggle = "layout"
, which is why I allow string literals on the left of =
.
@utkarshkukreti Is there a similar way to output a hyphenated element?
my-custom-element#id.class {
@content
}
Currently gives error expected expression
pointing at the @content
. This is important for custom elements.
Hyphenated attributes produce the following error. This is important for being able to use Bootstrap.
Throws the error