noradf-core
v0.3.0
Published
## Config Express template engine
Downloads
5
Maintainers
Readme
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