Comparing version 0.6.0 to 0.6.1
0.6.1 / 2011-12-09 | ||
================== | ||
* Fixed `ejs.renderFile()` | ||
0.6.0 / 2011-12-09 | ||
@@ -3,0 +8,0 @@ ================== |
@@ -12,3 +12,4 @@ | ||
var utils = require('./utils'); | ||
var utils = require('./utils') | ||
, fs = require('fs'); | ||
@@ -19,3 +20,3 @@ /** | ||
exports.version = '0.6.0'; | ||
exports.version = '0.6.1'; | ||
@@ -22,0 +23,0 @@ /** |
{ | ||
"name": "ejs", | ||
"description": "Embedded JavaScript templates", | ||
"version": "0.6.0", | ||
"version": "0.6.1", | ||
"author": "TJ Holowaychuk <tj@vision-media.ca>", | ||
@@ -6,0 +6,0 @@ "keywords": ["template", "engine", "ejs"], |
@@ -17,2 +17,13 @@ | ||
}, | ||
'test renderFile': function(){ | ||
var html = '<h1>tj</h1>', | ||
str = '<p><%= name %></p>', | ||
options = { name: 'tj', open: '{', close: '}' }; | ||
ejs.renderFile(__dirname + '/fixtures/user.ejs', options, function(err, res){ | ||
assert.ok(!err); | ||
assert.equal(res, html); | ||
}) | ||
}, | ||
@@ -19,0 +30,0 @@ 'test buffered code': function(){ |
45527
19
1276
19