riot-js

Open full view…

single quotes vs double

sgrona
Fri, 20 Feb 2015 22:46:37 GMT

hi - my question is probably best preceded with an example: say you've got this tag: <input data-form-data={ dataFormData } /> and the js library you're using which requires some values in the data-format-data requires that the string inside of their is enclosed in single quotes. Looks like Riot will enclose the dataFormData variable with double quotes. how do i get around this and force the string to be enclosed in single quotes?

Tero Piirainen
Sat, 21 Feb 2015 07:42:18 GMT

All attributes are now enclosed with double quotes. I didn't really understand the issue you are experiencing. Can you make a jsfiddle that fails? Nothing beats a working (minimalistic) example that points out the precise issue!