e0ad36ff707b5310f9f84edada94ecb12f31f961.svn-base 242 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 /** * Module dependencies. */ var ejs = require('../') , fs = require('fs') , str = fs.readFileSync(__dirname + '/list.ejs', 'utf8'); var ret = ejs.render(str, { locals: { names: ['foo', 'bar', 'baz'] } }); console.log(ret);