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

Unexpected '-' #5

Open
webjay opened this issue Nov 20, 2011 · 2 comments
Open

Unexpected '-' #5

webjay opened this issue Nov 20, 2011 · 2 comments

Comments

@webjay
Copy link

webjay commented Nov 20, 2011

div data-role: 'content', -> should rather be div data: {role: 'content'}, -> to avoid Parse error on line n: Unexpected '-'

Only happens when there are more than one data attribute.

@brandonbloom
Copy link
Owner

A quick inspection leads me to believe that this feature could easily be added by mutating attribs right before the # Render attributes step. You'd also have to update that step to check strings vs dictionaries when printing attribute values.

If you'd like to submit a patch, I'll happily integrate it.

@brandonbloom
Copy link
Owner

Look in lib/convert.coffee

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