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

Add helper method to coerce attribute values #58

Open
mojavelinux opened this issue Sep 25, 2014 · 0 comments
Open

Add helper method to coerce attribute values #58

mojavelinux opened this issue Sep 25, 2014 · 0 comments

Comments

@mojavelinux
Copy link
Member

Add a helper method to coerce attribute values so that they are assigned in JavaScript as the appropriate type and safely.

There are at least two cases, currently.

  1. the attribute value needs to be emitted as a quoted string
  2. the attribute value needs to be emitted as a boolean

In the second case, the backend is currently broken if the attribute value is not assigned a value of "true" or "false". For example, consider the following attribute declaration:

:revealjs_history:

This produces:

history: ,
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

1 participant