Skip to content

Commit

Permalink
Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
mde committed Apr 21, 2018
1 parent 260f228 commit c8b69a3
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions examples/output-function.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

0 comments on commit c8b69a3

Please sign in to comment.