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

Put your domo code into a function that takes data and returns a DOM object. BAM, there's your template.

Your JavaScript code can only have one global object, I don't see a reason to pass it in instead of finding it for you.



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

Search: