by thefreeman · 12y ago · 0 comments
I currently do this too - I'll add that it is helpful to use a templating language that will work both server side and client side so you only write your templates once.
What does become a pain is doing routers/controllers both client side and server side - end up writing some code more than once and in different languages. Harder to maintain, especially when changes are made.
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.
there exists templating engines that run on both server and client - for example, google closure templates.
No disagreements on multiple solutions - definitely a cool approach.