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

Doesn't this necessitate lots of individual templates? (in this example: inputTemplate, labelTemplate...)

Is there an easy way to manage this? From what I've seen it's typical to have one template per view (and possibly sub-views with sub-templates).



Dunno about easy, but we use Require.js with either the text! plugin or a custom plugin for jade templates, so they're in their own files.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

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

Search: