How to use the consolidate.dust function in consolidate

To help you get started, we’ve selected a few consolidate examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github xtemplate / xtpl / benchmark / index.js View on Github external
'fn': function (deferred) {
            consolidate.dust(path.join(__dirname, 'views/includes/common-dust.html'), data, function (err, html) {
                if (err) {
                    throw err;
                }
                deferred.resolve();
            });
        }
    });
github xtemplate / xtpl / benchmark / defer.js View on Github external
'fn': function (deferred) {
            consolidate.dust(path.join(__dirname, 'views/includes/dust.html'), getData(), function (err, html) {
                if (err) {
                    throw err;
                }
                deferred.resolve();
            });
        }
    });

consolidate

Modern and maintained fork of the template engine consolidation library. Maintained and supported by Forward Email <https://forwardemail.net>, the 100% open-source and privacy-focused email service.

MIT
Latest version published 5 months ago

Package Health Score

81 / 100
Full package analysis