3 ms·
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 javascri
by thefreeman 13y ago
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.
- chii 13y ago> 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.
- salman89 13y agoYou can use cross-language templating options - personally I use mustache. No disagreements on multiple solutions - definitely a cool approach.