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

Allow reserved words as tags, e.g. {{class}} #383

Closed
Rich-Harris opened this issue Mar 17, 2017 · 3 comments
Closed

Allow reserved words as tags, e.g. {{class}} #383

Rich-Harris opened this issue Mar 17, 2017 · 3 comments

Comments

@Rich-Harris
Copy link
Member

See #289 (comment) (creating a new issue as that one was closed and this is slightly different).

@dmitry-kurmanov
Copy link
Contributor

dmitry-kurmanov commented Oct 22, 2018

Hi team! What about {{class}} in svelte v2.14.1 . I can't find it in the doc. Thank you.

PS I think that div wrapper with class is ok, so it is just interest.

@Conduitry
Copy link
Member

@dmitrykurmanov I'm not sure what you're asking. You can still do {class} or other reserved words in current versions. (The syntax changed from {{class}} to {class} in v2.) Because of challenged with parsing, you can only have tags that contain just a reserved word, and they can't be part of a larger expression.

What specifically are you saying you think should be in the docs?

@dmitry-kurmanov
Copy link
Contributor

@Conduitry please forgot about it :). It is an old issue about passing class to the nested component. With an old syntax. I've missed it. I am ok now and don't have any problem with it. Sorry for the confusing question.

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

No branches or pull requests

3 participants