node.jsexpresssocket.io

Using express without a template engine


Is it possible to create an express (node) application without the need for a template engine such as jade or ejs. I've got a large final year project at university and i'm going to be using node, express, socket.io, mongoDB and websockets. I don't want to burden myself with having to learn a templating language too!

By default express uses jade -t, --template add template support (jade|ejs). default=jade


Solution

  • Is it possible to create an express (node) application without the need for a template engine such as jade or ejs

    Yes it is. You can just use HTML. Or just use EJS. EJS is a superset of HTML.

    I don't want to burden myself with having to learn a templating language too!

    You can learn a templating language in a day. It's really going to help you. Just do it. It's worth it.