Comparing version 0.8.1 to 0.8.2
0.8.2 / 2012-08-16 | ||
================== | ||
* fix include "open" / "close" options. Closes #64 | ||
0.8.1 / 2012-08-11 | ||
@@ -3,0 +8,0 @@ ================== |
@@ -159,3 +159,3 @@ | ||
include = read(path, 'utf8'); | ||
include = exports.parse(include, { filename: path, _with: false }); | ||
include = exports.parse(include, { filename: path, _with: false, open: open, close: close }); | ||
buf.push("' + (function(){" + include + "})() + '"); | ||
@@ -162,0 +162,0 @@ js = ''; |
{ | ||
"name": "ejs", | ||
"description": "Embedded JavaScript templates", | ||
"version": "0.8.1", | ||
"version": "0.8.2", | ||
"author": "TJ Holowaychuk <tj@vision-media.ca>", | ||
@@ -6,0 +6,0 @@ "keywords": ["template", "engine", "ejs"], |
@@ -172,3 +172,3 @@ /** | ||
var file = 'test/fixtures/include.ejs'; | ||
ejs.render(fixture('include.ejs'), { filename: file, pets: users }) | ||
ejs.render(fixture('include.ejs'), { filename: file, pets: users, open: '[[', close: ']]' }) | ||
.should.equal(fixture('include.html')); | ||
@@ -175,0 +175,0 @@ }) |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
48284