Both seem to do very similar things in a similar way.
- Both allow you to embed javascript in templates and have the same 3 types of tags -unescaped replace, escaped replace, embed js -.
- Both have the ability to "precompile" the template by creating generator functions.
- In addition, both can be used as a template engine for / node.js. (both in the browser and everywhere where js is supported).
So, when do I need to choose EJS and underscore.js templates: what should I consider? Is it the same thing with a different name? If so, why is it so that there are two boilerplate mechanisms?
source
share