wk 2 Backend development - Sophievanderburg/blok-tech GitHub Wiki

📚 Desk research: Templating engines

Pug Ejs Handlebars
Picture of wireframe Picture of wireframe Picture of wireframe
// comment <%# comment %> {{!- - comment - -}}
include partials/head.pug <%- include('partials/footer') %> {{> myPartial }}
app.get('/', function (req, res) {res.render('index', { info })}) ,, ,,

I chose ejs for several reasons:

  • The syntax of ejs is the most clear to me.
  • I found more articles about ejs than the other two. From this I conclude that I can find more solutions for ejs problems than for the other two engines.
  • The people I work with, use ejs. So when we work together this will be easier, because we use the same engine.

Used sources

Pug

EJS

Handlebars