Skip to content

Commit d644490

Browse files
authored
Change mustache to_html for render (#338)
This commit solves the following error while running Gulp: ``` let rendered = mustache.to_html(content.toString(), options); ^ TypeError: mustache.to_html is not a function ```
1 parent 4c79d0d commit d644490

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

amp-camp/src/server/server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ app.engine('html', function(filePath, options, callback) {
7575
if (err)
7676
return callback(err);
7777

78-
let rendered = mustache.to_html(content.toString(), options);
78+
let rendered = mustache.render(content.toString(), options);
7979
return callback(null, rendered);
8080
});
8181
});

0 commit comments

Comments
 (0)