Hacker News new | ask | show | jobs
by jeffesp 5386 days ago
The key thing that it looks like he is doing is using heredocs and string interpolation to change the way the HTML for the template is written. This is cool, but in my opinion the wrong place for HTML. I think the support of script tags with type=text/x-jquery-tmpl and an id are a better option than HTML in a string variable (http://api.jquery.com/template). At least then I feel like I am writing HTML in the right spot.