vendredi 6 mars 2015

ExpressJS how to extend base.html by block content?

I use plain html but i wonder if in node/express is there an option to use

{% block content %} {% endblock %} and then second template just

{% extends template.html %}


Right know i use ejs template engine



app.engine('html', require('ejs').renderFile);
app.set('view engine', 'html');


I don't need any special tags for javascript i just want to be able to extend main base.html maybe somebody know similar solution which django provide? I don't remember what template engine it was but i allowed to extend base.html by block content.


Aucun commentaire:

Enregistrer un commentaire