Skip to content

Commit

Permalink
Merge 10ea86c into 22c395e
Browse files Browse the repository at this point in the history
  • Loading branch information
Scrum committed Jan 13, 2020
2 parents 22c395e + 10ea86c commit d45d25c
Show file tree
Hide file tree
Showing 3 changed files with 204 additions and 69 deletions.
2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
var parser = require('posthtml-parser');
var match = require('posthtml/lib/api').match;
var fs = require('fs');
var path = require('path');

Expand All @@ -9,6 +10,7 @@ module.exports = function(options) {

return function posthtmlInclude(tree) {
if (!tree.parser) tree.parser = parser;
if (!tree.match) tree.match = match;
tree.match({ tag: 'include' }, function(node) {
var src = node.attrs.src || false;
var content;
Expand Down

0 comments on commit d45d25c

Please sign in to comment.