Hacker News new | past | comments | ask | show | jobs | submit login

Right, and if you want to generate them server side, you either need to have separate templates for server side and client side, or you can execute the javascript on the server (which is what the OP decided to do).

Noone is saying there aren't other solutions to the problem, but I think the OP's solution met his goals pretty well and I thought it was a neat concept.




> you either need to have separate templates for server side and client side

there exists templating engines that run on both server and client - for example, google closure templates.


You can use cross-language templating options - personally I use mustache.

No disagreements on multiple solutions - definitely a cool approach.




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

Search: