News for hackers. Stuff that matters.
Re:Avoiding Common Backbone.js Pitfalls by SanderMak on Thursday March 28, 2013 @04:15AM (#5453758)
Doesn't that also involve an extra HTTP call? I discussed the same issue as OP a while ago: http://branchandbound.net/blog/web/2012/11/unify-server-side...

Someone in the comments there mentioned a nice alternative to embeddding the data in a <script> tag to avoid the problem jashkenas raised (</script> in the JSON). Namely, setting it in a data- attribute.

There are no comments on this comment yet.