16 lines
242 B
JavaScript
16 lines
242 B
JavaScript
|
|
/**
|
|
* 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); |