Last Updated: February 25, 2016
·
1.538K
· Marcos Hernandez

Use different template engine in express

Coming from python + django and a html based template system it's hard to use an alien template syntax as HAML or Jade, you can use Swig which is a clone from Jinja, te template system used by django.

The code refers to underscore.js but you can use any other template system.

Blogpost by Alexander Luksidadi: ExpressJS without Jade

1 Response
Add your response

It is not that hard. After an hour of introducing yourself to this kind of syntax and hours of writing templates in it you will become to lazy to open and close all those HTML tags and use fingerbreaking anglebracket-percent combo each time you need some code.

over 1 year ago ·