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

Is there any way to use WC3 valid attributes for rivets? #718

Closed
Andrinoid opened this issue Aug 15, 2017 · 2 comments
Closed

Is there any way to use WC3 valid attributes for rivets? #718

Andrinoid opened this issue Aug 15, 2017 · 2 comments

Comments

@Andrinoid
Copy link

First of all, thank you guys for the wonderful framework.
Here is my issue. I'm get WC3 error for every rv- attribute I have on my page. Is there anyway to use valid attributes with rivets.

@Namek
Copy link
Contributor

Namek commented Aug 17, 2017

Maybe change the prefix from rv to data-rv? Search "prefix" in "Configuring" section on http://rivetsjs.com/docs/guide/

@Andrinoid
Copy link
Author

Thank you. I had to use only data as prefix. I might be wrong but I think the hyphen is used as a logic separator in some binders so data-rv failed in some cases. Below is the configuration that worked for me.

rivets.configure({
  // Attribute prefix in templates
  prefix: 'data',
})

then in my templates
<div data-if="app.someValue">

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

No branches or pull requests

2 participants