5 ms·
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.
by aymeric 14y 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.
- jerf 14y agoIt's a technique in a lot of worlds: http://en.wikipedia.org/wiki/Partial_evaluation 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.)
- HenrikJoreteg 14y agoYou 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.