This repository has been archived on 2018-10-12. You can view files and clone it, but cannot push or open issues or pull requests.
node-task/node_modules/dustjs-linkedin/lib/server.js

18 lines
421 B
JavaScript
Raw Normal View History

2014-09-18 16:17:29 -04:00
/*global process*/
var path = require('path'),
vm = require('vm'),
dust = require('./dust'),
parser = require('./parser'),
compiler = require('./compiler');
// use Node equivalents for some Dust methods
var context = vm.createContext({dust: dust});
dust.loadSource = function(source, path) {
return vm.runInContext(source, context, path);
};
dust.nextTick = process.nextTick;
module.exports = dust;