212 lines
5.9 KiB
JSON
212 lines
5.9 KiB
JSON
|
{
|
||
|
"type": "Block",
|
||
|
"nodes": [
|
||
|
{
|
||
|
"type": "Extends",
|
||
|
"file": {
|
||
|
"type": "FileReference",
|
||
|
"path": "../fixtures/layout.pug",
|
||
|
"line": 1,
|
||
|
"filename": "root-mixin.pug",
|
||
|
"fullPath": "../fixtures/layout.pug",
|
||
|
"str": "doctype\n\nhtml\n head\n block head\n <title>Hello world!</title>\n body\n block body\n",
|
||
|
"ast": {
|
||
|
"type": "Block",
|
||
|
"nodes": [
|
||
|
{
|
||
|
"type": "Doctype",
|
||
|
"val": "",
|
||
|
"line": 1,
|
||
|
"filename": "../fixtures/layout.pug"
|
||
|
},
|
||
|
{
|
||
|
"type": "Tag",
|
||
|
"name": "html",
|
||
|
"selfClosing": false,
|
||
|
"block": {
|
||
|
"type": "Block",
|
||
|
"nodes": [
|
||
|
{
|
||
|
"type": "Tag",
|
||
|
"name": "head",
|
||
|
"selfClosing": false,
|
||
|
"block": {
|
||
|
"type": "Block",
|
||
|
"nodes": [
|
||
|
{
|
||
|
"type": "NamedBlock",
|
||
|
"nodes": [
|
||
|
{
|
||
|
"type": "Text",
|
||
|
"val": "<title>Hello world!</title>",
|
||
|
"filename": "../fixtures/layout.pug",
|
||
|
"line": 6,
|
||
|
"isHtml": true
|
||
|
}
|
||
|
],
|
||
|
"line": 5,
|
||
|
"filename": "../fixtures/layout.pug",
|
||
|
"name": "head",
|
||
|
"mode": "replace"
|
||
|
}
|
||
|
],
|
||
|
"line": 4,
|
||
|
"filename": "../fixtures/layout.pug"
|
||
|
},
|
||
|
"attrs": [],
|
||
|
"attributeBlocks": [],
|
||
|
"isInline": false,
|
||
|
"line": 4,
|
||
|
"filename": "../fixtures/layout.pug"
|
||
|
},
|
||
|
{
|
||
|
"type": "Tag",
|
||
|
"name": "body",
|
||
|
"selfClosing": false,
|
||
|
"block": {
|
||
|
"type": "Block",
|
||
|
"nodes": [
|
||
|
{
|
||
|
"type": "NamedBlock",
|
||
|
"nodes": [],
|
||
|
"line": 8,
|
||
|
"filename": "../fixtures/layout.pug",
|
||
|
"name": "body",
|
||
|
"mode": "replace"
|
||
|
}
|
||
|
],
|
||
|
"line": 7,
|
||
|
"filename": "../fixtures/layout.pug"
|
||
|
},
|
||
|
"attrs": [],
|
||
|
"attributeBlocks": [],
|
||
|
"isInline": false,
|
||
|
"line": 7,
|
||
|
"filename": "../fixtures/layout.pug"
|
||
|
}
|
||
|
],
|
||
|
"line": 3,
|
||
|
"filename": "../fixtures/layout.pug"
|
||
|
},
|
||
|
"attrs": [],
|
||
|
"attributeBlocks": [],
|
||
|
"isInline": false,
|
||
|
"line": 3,
|
||
|
"filename": "../fixtures/layout.pug"
|
||
|
}
|
||
|
],
|
||
|
"line": 0,
|
||
|
"filename": "../fixtures/layout.pug"
|
||
|
}
|
||
|
},
|
||
|
"line": 1,
|
||
|
"filename": "root-mixin.pug"
|
||
|
},
|
||
|
{
|
||
|
"type": "Mixin",
|
||
|
"name": "myMixin",
|
||
|
"args": null,
|
||
|
"block": {
|
||
|
"type": "Block",
|
||
|
"nodes": [
|
||
|
{
|
||
|
"type": "Tag",
|
||
|
"name": "p",
|
||
|
"selfClosing": false,
|
||
|
"block": {
|
||
|
"type": "Block",
|
||
|
"nodes": [
|
||
|
{
|
||
|
"type": "Text",
|
||
|
"val": "Hello world",
|
||
|
"line": 4,
|
||
|
"filename": "root-mixin.pug"
|
||
|
}
|
||
|
],
|
||
|
"line": 4,
|
||
|
"filename": "root-mixin.pug"
|
||
|
},
|
||
|
"attrs": [],
|
||
|
"attributeBlocks": [],
|
||
|
"isInline": false,
|
||
|
"line": 4,
|
||
|
"filename": "root-mixin.pug"
|
||
|
}
|
||
|
],
|
||
|
"line": 4,
|
||
|
"filename": "root-mixin.pug"
|
||
|
},
|
||
|
"call": false,
|
||
|
"line": 3,
|
||
|
"filename": "root-mixin.pug"
|
||
|
},
|
||
|
{
|
||
|
"type": "NamedBlock",
|
||
|
"nodes": [
|
||
|
{
|
||
|
"type": "Tag",
|
||
|
"name": "p",
|
||
|
"selfClosing": false,
|
||
|
"block": {
|
||
|
"type": "Block",
|
||
|
"nodes": [
|
||
|
{
|
||
|
"type": "Text",
|
||
|
"val": "Before",
|
||
|
"line": 7,
|
||
|
"filename": "root-mixin.pug"
|
||
|
}
|
||
|
],
|
||
|
"line": 7,
|
||
|
"filename": "root-mixin.pug"
|
||
|
},
|
||
|
"attrs": [],
|
||
|
"attributeBlocks": [],
|
||
|
"isInline": false,
|
||
|
"line": 7,
|
||
|
"filename": "root-mixin.pug"
|
||
|
},
|
||
|
{
|
||
|
"type": "Mixin",
|
||
|
"name": "myMixin",
|
||
|
"args": null,
|
||
|
"block": null,
|
||
|
"call": true,
|
||
|
"attrs": [],
|
||
|
"attributeBlocks": [],
|
||
|
"line": 8,
|
||
|
"filename": "root-mixin.pug"
|
||
|
},
|
||
|
{
|
||
|
"type": "Tag",
|
||
|
"name": "p",
|
||
|
"selfClosing": false,
|
||
|
"block": {
|
||
|
"type": "Block",
|
||
|
"nodes": [
|
||
|
{
|
||
|
"type": "Text",
|
||
|
"val": "After",
|
||
|
"line": 9,
|
||
|
"filename": "root-mixin.pug"
|
||
|
}
|
||
|
],
|
||
|
"line": 9,
|
||
|
"filename": "root-mixin.pug"
|
||
|
},
|
||
|
"attrs": [],
|
||
|
"attributeBlocks": [],
|
||
|
"isInline": false,
|
||
|
"line": 9,
|
||
|
"filename": "root-mixin.pug"
|
||
|
}
|
||
|
],
|
||
|
"line": 6,
|
||
|
"filename": "root-mixin.pug",
|
||
|
"name": "body",
|
||
|
"mode": "replace"
|
||
|
}
|
||
|
],
|
||
|
"line": 0,
|
||
|
"filename": "root-mixin.pug"
|
||
|
}
|