Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails when numbers are provided in class names #241

Closed
mitchhentges opened this issue Nov 29, 2020 · 1 comment · Fixed by #242
Closed

Fails when numbers are provided in class names #241

mitchhentges opened this issue Nov 29, 2020 · 1 comment · Fixed by #242

Comments

@mitchhentges
Copy link

Bootstrap's grid system involves classes with numbers, such as col-sm-2. This fails at compilation with the error: "expected string".

For example:

html! {
    .col-sm-2 {}
}
error: expected string
 --> file.rs:6:34
  |
n |     let markup = html! { .col-sm-2 {} };
  |                                  ^
@lambda-fairy
Copy link
Owner

Does this work?

html! {
    ."col-sm-2" {}
}

The confusing error message is covered by #208, but I just notice that the docs don't mention this at all... whoops 🤦

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants