htmltemplate-transform
Advanced tools
Comparing version 2.0.0 to 2.0.1
{ | ||
"name": "htmltemplate-transform", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Pluggable transforms for HTML::Template", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -59,17 +59,19 @@ var fs = require('fs'); | ||
if (isBlockTag(node)) { | ||
var blockName = getPrimaryAttributeValue(node.attributes); | ||
this.after(function() { | ||
var blockName = getPrimaryAttributeValue(node.attributes); | ||
var id = filepathAsBlockId( | ||
getLocalBlockIdentifier(blockName, state.parentFilePath, state.rootFilepath) | ||
); | ||
var id = filepathAsBlockId( | ||
getLocalBlockIdentifier(blockName, state.parentFilePath, state.rootFilepath) | ||
); | ||
blocks.push({ | ||
id: id, | ||
content: node.content | ||
}); | ||
blocks.push({ | ||
id: id, | ||
content: node.content | ||
}); | ||
this.update({ | ||
type: 'Text', | ||
content: '', | ||
position: node.position | ||
this.update({ | ||
type: 'Text', | ||
content: '', | ||
position: node.position | ||
}); | ||
}); | ||
@@ -76,0 +78,0 @@ } |
@@ -8,3 +8,3 @@ [ | ||
"type": "SingleAttribute", | ||
"name": "inc_include_inc_decorated_title_local" | ||
"name": "inc_include_inc_delegated_title_local" | ||
} | ||
@@ -67,2 +67,67 @@ ], | ||
"type": "SingleAttribute", | ||
"name": "inc_include_inc_decorated_title_local" | ||
} | ||
], | ||
"content": [ | ||
{ | ||
"type": "Text", | ||
"content": "\n ", | ||
"position": { | ||
"line": 5, | ||
"column": 29 | ||
} | ||
}, | ||
{ | ||
"type": "HTMLTag", | ||
"name": "b", | ||
"attributes": [], | ||
"content": [ | ||
{ | ||
"type": "Tag", | ||
"name": "TMPL_INLINE", | ||
"attributes": [ | ||
{ | ||
"type": "SingleAttribute", | ||
"name": "inc_include_inc_delegated_title_local" | ||
}, | ||
{ | ||
"type": "PairAttribute", | ||
"name": "title", | ||
"value": { | ||
"type": "Identifier", | ||
"name": "title", | ||
"position": { | ||
"line": 6, | ||
"column": 43 | ||
} | ||
}, | ||
"position": { | ||
"line": 6, | ||
"column": 37 | ||
} | ||
} | ||
] | ||
} | ||
], | ||
"position": { | ||
"line": 6, | ||
"column": 5 | ||
} | ||
}, | ||
{ | ||
"type": "Text", | ||
"content": "\n", | ||
"position": { | ||
"line": 6, | ||
"column": 53 | ||
} | ||
} | ||
] | ||
}, | ||
{ | ||
"type": "Tag", | ||
"name": "TMPL_BLOCK", | ||
"attributes": [ | ||
{ | ||
"type": "SingleAttribute", | ||
"name": "inc_nested_include_inc_decorated_title_local" | ||
@@ -220,2 +285,18 @@ } | ||
{ | ||
"type": "Text", | ||
"content": "", | ||
"position": { | ||
"line": 5, | ||
"column": 1 | ||
} | ||
}, | ||
{ | ||
"type": "Text", | ||
"content": "\n\n", | ||
"position": { | ||
"line": 7, | ||
"column": 14 | ||
} | ||
}, | ||
{ | ||
"type": "HTMLTag", | ||
@@ -229,3 +310,3 @@ "name": "h1", | ||
"position": { | ||
"line": 5, | ||
"line": 9, | ||
"column": 5 | ||
@@ -252,3 +333,3 @@ } | ||
"position": { | ||
"line": 7, | ||
"line": 11, | ||
"column": 18 | ||
@@ -259,3 +340,3 @@ } | ||
"position": { | ||
"line": 7, | ||
"line": 11, | ||
"column": 15 | ||
@@ -265,3 +346,3 @@ } | ||
"position": { | ||
"line": 7, | ||
"line": 11, | ||
"column": 9 | ||
@@ -276,3 +357,3 @@ } | ||
"position": { | ||
"line": 7, | ||
"line": 11, | ||
"column": 32 | ||
@@ -297,3 +378,3 @@ } | ||
"position": { | ||
"line": 9, | ||
"line": 13, | ||
"column": 15 | ||
@@ -303,3 +384,3 @@ } | ||
"position": { | ||
"line": 9, | ||
"line": 13, | ||
"column": 9 | ||
@@ -314,3 +395,3 @@ } | ||
"position": { | ||
"line": 9, | ||
"line": 13, | ||
"column": 24 | ||
@@ -321,3 +402,3 @@ } | ||
"position": { | ||
"line": 5, | ||
"line": 9, | ||
"column": 1 | ||
@@ -330,3 +411,3 @@ } | ||
"position": { | ||
"line": 10, | ||
"line": 14, | ||
"column": 6 | ||
@@ -333,0 +414,0 @@ } |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
350200
8585