Skip to content

Commit

Permalink
Upgrade ejs to v2 (w/ comments support)
Browse files Browse the repository at this point in the history
  • Loading branch information
cgmartin committed Jan 2, 2016
1 parent eefba2d commit beb27cd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"author": "Tommy Chen <tommy351@gmail.com> (http://zespia.tw)",
"license": "MIT",
"dependencies": {
"ejs": "^1.0.0",
"ejs": "^2.3.4",
"object-assign": "^4.0.1"
},
"devDependencies": {
Expand Down
9 changes: 9 additions & 0 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,15 @@ describe('EJS renderer', function() {
result.should.eql('Hello world');
});

it('comments', function() {
var body = [
'Comment <%# hidden %>'
].join('\n');

var result = r({text: body});
result.should.eql('Comment ');
});

it('include', function() {
var body = [
'<% include test %>'
Expand Down

0 comments on commit beb27cd

Please sign in to comment.