How to use the dust function from consolidate

Find comprehensive JavaScript consolidate.dust code examples handpicked from public code repositorys.

4
5
6
7
8
9
10
11
12
13
var express = require('express');
var http = require('http');
//var https = require('https');
var path = require('path');
var cons = require('consolidate');
var dust = cons.dust;
var mongodb = require('mongodb');
var jobs = require('./jobs');
var logger = require('morgan');
var methodOverride = require('method-override');
fork icon1
star icon3
watch icon2

+ 14 other calls in file

76
77
78
79
80
81
82
83
84
85
86
app = module.exports = express();


var cons = require('consolidate');
app.engine('dust', cons.dust);
if (process.env.ENV == 'DEV') {
    cons.dust.debugLevel = 'DEBUG';
}
app.set('view engine', 'dust');
require('./custom_helpers.js');

fork icon0
star icon0
watch icon2