Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Yes, embedding HTML in strings is an awful pattern, and something you should strive to avoid at all costs. Backbone.js is intended to work with the templating library of your choosing, and there are good JS templating helpers for Rails in the form of Sprockets 2 and Jammit.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: