list.js 224 B

1234567891011121314
  1. /**
  2. * Module dependencies.
  3. */
  4. var ejs = require('../')
  5. , fs = require('fs')
  6. , str = fs.readFileSync(__dirname + '/list.ejs', 'utf8');
  7. var ret = ejs.render(str, {
  8. names: ['foo', 'bar', 'baz']
  9. });
  10. console.log(ret);