Skip to content

Noradf/noradf-core

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Norad Framework Core

Config Express template engine

You can set the default Express template engine in config file

{
    "express": {
        "engines": {
          "default": "jade"
        }
    }
}

Noradf uses consolidate to get the template engine. You must install the template engine unless you use swig which is the default template engine

All your .html files will be rendered with the template engine you've chosen. If you want to add another template files use this configuration

{
    "express": {
        "engines": {
          "default": "jade",
          "swig": "swig",
          "tpl": "nunjucks"
        }
    }
}

With the above configuration your .html files will be rendered with jade, your .swig files will be rendered with swig and your .tpl files will be rendered with nunjucks