Comparing version 0.8.0 to 0.8.1
0.8.1 / 2012-08-11 | ||
================== | ||
* fix comments. Closes #62 [Nate Silva] | ||
0.8.0 / 2012-07-25 | ||
@@ -3,0 +8,0 @@ ================== |
@@ -166,3 +166,6 @@ | ||
if (js.substr(0, 1) == ':') js = filtered(js); | ||
if (js) buf.push(prefix, js, postfix); | ||
if (js) { | ||
if (js.lastIndexOf('//') > js.lastIndexOf('\n')) js += '\n'; | ||
buf.push(prefix, js, postfix); | ||
} | ||
i += end - start + close.length - 1; | ||
@@ -169,0 +172,0 @@ |
{ | ||
"name": "ejs", | ||
"description": "Embedded JavaScript templates", | ||
"version": "0.8.0", | ||
"version": "0.8.1", | ||
"author": "TJ Holowaychuk <tj@vision-media.ca>", | ||
@@ -6,0 +6,0 @@ "keywords": ["template", "engine", "ejs"], |
@@ -187,2 +187,9 @@ /** | ||
}) | ||
}) | ||
}) | ||
describe('comments', function() { | ||
it('should fully render with comments removed', function() { | ||
ejs.render(fixture('comments.ejs')) | ||
.should.equal(fixture('comments.html')); | ||
}) | ||
}) |
48139
46
1249