Skip to content

Commit

Permalink
Merge pull request #55 from syumai/fix-raw-include-bug
Browse files Browse the repository at this point in the history
Fixed raw include bug
  • Loading branch information
syumai authored May 19, 2020
2 parents ed56d56 + b113f77 commit b19e748
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ export async function compile(reader: Reader): Promise<Template> {
switch (readMode) {
case ReadMode.Raw:
statements.push(
`;$$OUTPUT.push(${await bufToStrWithSanitize(statementBuf)});`,
`;$$OUTPUT.push(${await bufToStr(statementBuf)});`,
);
break;
case ReadMode.Escaped:
Expand Down
2 changes: 1 addition & 1 deletion testdata/include.ejs
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<%- await include('testdata/included.ejs', { param }) %>
<%- await include(`testdata/included.ejs`, { param }) %>

0 comments on commit b19e748

Please sign in to comment.