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
Written by Marcos Hernández
Related protips
1 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
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Node
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#