How to use the jade function from consolidate

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

24
25
26
27
28
29
30
31
32
33

if (jadeFile) {
  // Handle exports.
  viewModel.basedir = Path.join(__dirname, '../templates/jade/');
  
  Consolidate.jade(jadeFile, viewModel, function (err, html) {
    if (!err) {
      callback && callback(html);
    }
    else {
fork icon8
star icon34
watch icon5

+ 3 other calls in file

49
50
51
52
53
54
55
56
57
58
     | see https://github.com/tj/consolidate.js#supported-template-engines for
     | all the supported template engine.
     |
     */
    'engines': {
        'jade': engines.jade
    }
};

module.exports = config;
fork icon11
star icon0
watch icon3