Node JS: How to install a template engine in krakenjs

I don't know how to install jade template in kraken js, can anyone help me.

+3
source share
1 answer

Open your config / app.json, there are "viewing mechanisms". Uncomment it and add your own template module (you must first install it on npm). You can also change the express configuration to use Jade.

The following is an example configuration for using ejs as a viewer:

"view engines": {
    "html": {
        "module": "ejs",
        "renderer": "__express"
    }
},

"express": {
    "view engine": "html"
}

Source .

+2
source

All Articles