diff --git a/examples/output-function.js b/examples/output-function.js index 9bf5d07d..9cd4ac75 100644 --- a/examples/output-function.js +++ b/examples/output-function.js @@ -7,16 +7,16 @@ var read = require('fs').readFileSync; var join = require('path').join; var path = join(__dirname, '/output-function.ejs'); var data = { - users: [ - { name: 'Tobi', age: 2, species: 'ferret' }, - { name: 'Loki', age: 2, species: 'ferret' }, - { name: 'Jane', age: 6, species: 'ferret' } - ] + users: [ + {name: 'Tobi', age: 2, species: 'ferret'}, + {name: 'Loki', age: 2, species: 'ferret'}, + {name: 'Jane', age: 6, species: 'ferret'} + ] }; var ret = ejs.compile(read(path, 'utf8'), { - filename: path, - outputFunctionName: 'echo' + filename: path, + outputFunctionName: 'echo' })(data); console.log(ret);