Skip to content

Commit f948177

Browse files
authored
Merge pull request #34 from posthtml/milestone-1.3.3
Milestone 1.3.3
2 parents 22c395e + 0f4845d commit f948177

3 files changed

Lines changed: 73 additions & 65 deletions

File tree

index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
var parser = require('posthtml-parser');
2+
var match = require('posthtml/lib/api').match;
23
var fs = require('fs');
34
var path = require('path');
45

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

1011
return function posthtmlInclude(tree) {
1112
if (!tree.parser) tree.parser = parser;
13+
if (!tree.match) tree.match = match;
1214
tree.match({ tag: 'include' }, function(node) {
1315
var src = node.attrs.src || false;
1416
var content;

package-lock.json

Lines changed: 64 additions & 60 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
{
22
"name": "posthtml-include",
3-
"version": "1.3.2",
3+
"version": "1.3.3",
44
"description": "Include file in HTML",
55
"main": "index.js",
6-
"dependencies": {},
6+
"dependencies": {
7+
"posthtml": "^0.12.0",
8+
"posthtml-parser": "^0.4.2"
9+
},
710
"devDependencies": {
811
"chai": "^4.2.0",
912
"istanbul": "^0.4.5",
1013
"jscs": "^3.0.7",
11-
"jshint": "^2.8.0",
12-
"mocha": "^6.2.2",
13-
"posthtml": "^0.12.0"
14+
"jshint": "^2.10.3",
15+
"mocha": "^6.2.2"
1416
},
1517
"scripts": {
1618
"test": "npm run lint && mocha -R dot && npm run cover",

0 commit comments

Comments
 (0)