News for hackers. Stuff that matters.
Re:Stop sending template engines to the browser. How to make... by aymeric on Thursday September 13, 2012 @08:32PM (#4519424)
Is there similar solution in the .NET world? I am using Knockout.js with underscore templates, and I would like to give this technique a try.
Re:Stop sending template engines to the browser. How to make... by jerf on Thursday September 13, 2012 @09:25PM (#4519566)
It's a technique in a lot of worlds: http://en.wikipedia.org/wiki/Partial_evaluation

(BTW, I just mean this as informative. I wish more people were aware of this idea, and I wish more mainstream languages would make this easier.)

Re:Stop sending template engines to the browser. How to make... by HenrikJoreteg on Friday September 14, 2012 @01:17AM (#4520187)
You can just pre-process them with node and then use the generated template functions in whatever app you want. It's just client-side JS at that point. This isn't unlike pre-process SASS, or SCSS, etc.