Hacker News new | ask | show | jobs
by aymeric 5023 days ago
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.
2 comments

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.)

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.