3 ms·
Oh yes. The mess of " and '. I'd love to be able to avoid that. Especially for stuff like this: '<img src="' + image.url + '" alt="' + image.title + '" tit
by TazeTSchnitzel 15y ago
Oh yes. The mess of " and '. I'd love to be able to avoid that. Especially for stuff like this:
'<img src="' + image.url + '" alt="' + image.title + '" title='" + image.title + '" />'
Did you notice the bug?
EDIT: Whoops, I made some other bug accidentally.
- nilliams 15y agoAh but you should never have to write code that looks like that. Use a templating language like Mustache (http://mustache.github.com/ http://mustache.github.com/). Or simply use string interpolation, which most dynamic languages have baked in: http://en.wikipedia.org/wiki/String_interpolation http://en.wikipedia.org/wiki/String_interpolation
- ryanpetrich 15y agoI count four bugs.