We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Now there is no possibility to use multiple args in binders. Like rivets.binders['*-on-*']. So foo-on-bar binder wouldn't fit this template.
rivets.binders['*-on-*']
foo-on-bar
http://jsfiddle.net/8Lw618or/3/
That's because of replace method. If its first parameter is a string, then it replaces only first occurrence.
replace
string
'aa'.replace('a', 'b'); // "ba"
So we need regex here with g flag.
'aa'.replace(/a/g, 'b'); // "bb"
Working example: http://jsfiddle.net/8Lw618or/4/
The text was updated successfully, but these errors were encountered:
Nice 👍
Sorry, something went wrong.
No branches or pull requests
Now there is no possibility to use multiple args in binders. Like
rivets.binders['*-on-*']
. Sofoo-on-bar
binder wouldn't fit this template.http://jsfiddle.net/8Lw618or/3/
That's because of
replace
method. If its first parameter is astring
, then it replaces only first occurrence.So we need regex here with g flag.
Working example: http://jsfiddle.net/8Lw618or/4/
The text was updated successfully, but these errors were encountered: