I'm new to Node.js and am trying to understand templating engines like Pug and EJS. I understand how to use them and what they do, but for some reason I'm not understanding the "why?"Like, is there some implicit benefit from generating HTML templates server-side/within Node instead of just writing/building/bundling your own index.html outside of Node and having the server serve that HTML file that you wrote? What's the purpose of having a templating engine like Pug on the server-side, and do Pug/EJS templating files actually get used in production in startups or big corporations?
Submitted August 13, 2018 at 01:39AM by garbaggio_otoko
No comments:
Post a Comment