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

Already on GitHub? Sign in to your account

Unexpected '-' #5

webjay opened this Issue Nov 20, 2011 · 2 comments


None yet
2 participants

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 commented Nov 20, 2011

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 commented Nov 20, 2011

Look in lib/convert.coffee

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