DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

Mahesh K
Mahesh K

Posted on

Why front end projects use template engines?

Why front end developers make use of the template engine? What's the benefit of using them? And also one more question, does every project needs to be done with template engine? Or projects that scale needs to use template engine?

Top comments (3)

Collapse
 
linda_ikechukwu profile image
Linda Ikechukwu

I use template engines like EJS when an application involves rendering dynamic content in the html either from an API, Server or Database

Collapse
 
ben profile image
Ben Halpern

If you're planning to send HTML over the wire you'll need a template engine, eh?

Collapse
 
maheshkay profile image
Mahesh K

I am referring to template engines like Handlebar JS and EJS. In which context one should use them? I know that we can build projects without using them. But I am not sure at when it's right to use them.

Advice For Junior Developers

>> Check out this classic DEV post <<