Templating Engine - Kitch41/Blok-Tech GitHub Wiki

1_-8c5bXmKhpKg8NRnBMu0zQ

I Really had to rack my brain coming up with the right Templating engine's since in my class everyone was divided between EJS and Handlebars. So i decided to look into both of them and researched a lot about them.

EJS

EJS is a templating engine which uses simple javascript syntax to that lets you generate HTML markup with plain JavaScript

Pros:

  • Uses Plain Javascript
  • Fast
  • Easy To Debug
  • Simple Syntax
  • Many tutorials
  • Used in class by many people

Cons:

  • No Prior Knowledge

HBS

Handlebars or HBS is another simple templating engine which serves the same purpose as EJS

Pros:

  • Semantic Templates
  • Fast
  • Easy to Debug
  • Quite some tutorials

Cons:

  • Installation is a little hard
  • Not a lot of people in class use it

PUG

Pug is a lesser known templating engine with fewer documentation.

Pros:

  • Simple installation
  • Simple use

Cons:

  • Not many classmates use it
  • Harder to understand

Conclusion

After a large amount of research EJS came up on top. I decided to use EJS because the people in my group mostly used EJS and in the research i did i found EJS a little easier to understand and install.