226 lines
7.8 KiB
JSON
226 lines
7.8 KiB
JSON
|
{
|
||
|
"type": "Block",
|
||
|
"nodes": [
|
||
|
{
|
||
|
"type": "Extends",
|
||
|
"file": {
|
||
|
"type": "FileReference",
|
||
|
"path": "../fixtures/prepend/app-layout.pug",
|
||
|
"line": 2,
|
||
|
"filename": "layout.prepend.pug",
|
||
|
"fullPath": "../fixtures/prepend/app-layout.pug",
|
||
|
"str": "\nextends layout.pug\n\nblock prepend head\n script(src='app.js')\n",
|
||
|
"ast": {
|
||
|
"type": "Block",
|
||
|
"nodes": [
|
||
|
{
|
||
|
"type": "Extends",
|
||
|
"file": {
|
||
|
"type": "FileReference",
|
||
|
"path": "layout.pug",
|
||
|
"line": 2,
|
||
|
"filename": "../fixtures/prepend/app-layout.pug",
|
||
|
"fullPath": "../fixtures/prepend/layout.pug",
|
||
|
"str": "\nhtml\n block head\n script(src='vendor/jquery.js')\n script(src='vendor/caustic.js')\n body\n block body",
|
||
|
"ast": {
|
||
|
"type": "Block",
|
||
|
"nodes": [
|
||
|
{
|
||
|
"type": "Tag",
|
||
|
"name": "html",
|
||
|
"selfClosing": false,
|
||
|
"block": {
|
||
|
"type": "Block",
|
||
|
"nodes": [
|
||
|
{
|
||
|
"type": "NamedBlock",
|
||
|
"nodes": [
|
||
|
{
|
||
|
"type": "Tag",
|
||
|
"name": "script",
|
||
|
"selfClosing": false,
|
||
|
"block": {
|
||
|
"type": "Block",
|
||
|
"nodes": [],
|
||
|
"line": 4,
|
||
|
"filename": "../fixtures/prepend/layout.pug"
|
||
|
},
|
||
|
"attrs": [
|
||
|
{
|
||
|
"name": "src",
|
||
|
"val": "'vendor/jquery.js'",
|
||
|
"mustEscape": true
|
||
|
}
|
||
|
],
|
||
|
"attributeBlocks": [],
|
||
|
"isInline": false,
|
||
|
"line": 4,
|
||
|
"filename": "../fixtures/prepend/layout.pug"
|
||
|
},
|
||
|
{
|
||
|
"type": "Tag",
|
||
|
"name": "script",
|
||
|
"selfClosing": false,
|
||
|
"block": {
|
||
|
"type": "Block",
|
||
|
"nodes": [],
|
||
|
"line": 5,
|
||
|
"filename": "../fixtures/prepend/layout.pug"
|
||
|
},
|
||
|
"attrs": [
|
||
|
{
|
||
|
"name": "src",
|
||
|
"val": "'vendor/caustic.js'",
|
||
|
"mustEscape": true
|
||
|
}
|
||
|
],
|
||
|
"attributeBlocks": [],
|
||
|
"isInline": false,
|
||
|
"line": 5,
|
||
|
"filename": "../fixtures/prepend/layout.pug"
|
||
|
}
|
||
|
],
|
||
|
"line": 3,
|
||
|
"filename": "../fixtures/prepend/layout.pug",
|
||
|
"name": "head",
|
||
|
"mode": "replace"
|
||
|
},
|
||
|
{
|
||
|
"type": "Tag",
|
||
|
"name": "body",
|
||
|
"selfClosing": false,
|
||
|
"block": {
|
||
|
"type": "Block",
|
||
|
"nodes": [
|
||
|
{
|
||
|
"type": "NamedBlock",
|
||
|
"nodes": [],
|
||
|
"line": 7,
|
||
|
"filename": "../fixtures/prepend/layout.pug",
|
||
|
"name": "body",
|
||
|
"mode": "replace"
|
||
|
}
|
||
|
],
|
||
|
"line": 6,
|
||
|
"filename": "../fixtures/prepend/layout.pug"
|
||
|
},
|
||
|
"attrs": [],
|
||
|
"attributeBlocks": [],
|
||
|
"isInline": false,
|
||
|
"line": 6,
|
||
|
"filename": "../fixtures/prepend/layout.pug"
|
||
|
}
|
||
|
],
|
||
|
"line": 2,
|
||
|
"filename": "../fixtures/prepend/layout.pug"
|
||
|
},
|
||
|
"attrs": [],
|
||
|
"attributeBlocks": [],
|
||
|
"isInline": false,
|
||
|
"line": 2,
|
||
|
"filename": "../fixtures/prepend/layout.pug"
|
||
|
}
|
||
|
],
|
||
|
"line": 0,
|
||
|
"filename": "../fixtures/prepend/layout.pug"
|
||
|
}
|
||
|
},
|
||
|
"line": 2,
|
||
|
"filename": "../fixtures/prepend/app-layout.pug"
|
||
|
},
|
||
|
{
|
||
|
"type": "NamedBlock",
|
||
|
"nodes": [
|
||
|
{
|
||
|
"type": "Tag",
|
||
|
"name": "script",
|
||
|
"selfClosing": false,
|
||
|
"block": {
|
||
|
"type": "Block",
|
||
|
"nodes": [],
|
||
|
"line": 5,
|
||
|
"filename": "../fixtures/prepend/app-layout.pug"
|
||
|
},
|
||
|
"attrs": [
|
||
|
{
|
||
|
"name": "src",
|
||
|
"val": "'app.js'",
|
||
|
"mustEscape": true
|
||
|
}
|
||
|
],
|
||
|
"attributeBlocks": [],
|
||
|
"isInline": false,
|
||
|
"line": 5,
|
||
|
"filename": "../fixtures/prepend/app-layout.pug"
|
||
|
}
|
||
|
],
|
||
|
"line": 4,
|
||
|
"filename": "../fixtures/prepend/app-layout.pug",
|
||
|
"name": "head",
|
||
|
"mode": "prepend"
|
||
|
}
|
||
|
],
|
||
|
"line": 0,
|
||
|
"filename": "../fixtures/prepend/app-layout.pug"
|
||
|
}
|
||
|
},
|
||
|
"line": 2,
|
||
|
"filename": "layout.prepend.pug"
|
||
|
},
|
||
|
{
|
||
|
"type": "NamedBlock",
|
||
|
"nodes": [
|
||
|
{
|
||
|
"type": "Tag",
|
||
|
"name": "script",
|
||
|
"selfClosing": false,
|
||
|
"block": {
|
||
|
"type": "Block",
|
||
|
"nodes": [],
|
||
|
"line": 5,
|
||
|
"filename": "layout.prepend.pug"
|
||
|
},
|
||
|
"attrs": [
|
||
|
{
|
||
|
"name": "src",
|
||
|
"val": "'foo.js'",
|
||
|
"mustEscape": true
|
||
|
}
|
||
|
],
|
||
|
"attributeBlocks": [],
|
||
|
"isInline": false,
|
||
|
"line": 5,
|
||
|
"filename": "layout.prepend.pug"
|
||
|
},
|
||
|
{
|
||
|
"type": "Tag",
|
||
|
"name": "script",
|
||
|
"selfClosing": false,
|
||
|
"block": {
|
||
|
"type": "Block",
|
||
|
"nodes": [],
|
||
|
"line": 6,
|
||
|
"filename": "layout.prepend.pug"
|
||
|
},
|
||
|
"attrs": [
|
||
|
{
|
||
|
"name": "src",
|
||
|
"val": "'bar.js'",
|
||
|
"mustEscape": true
|
||
|
}
|
||
|
],
|
||
|
"attributeBlocks": [],
|
||
|
"isInline": false,
|
||
|
"line": 6,
|
||
|
"filename": "layout.prepend.pug"
|
||
|
}
|
||
|
],
|
||
|
"line": 4,
|
||
|
"filename": "layout.prepend.pug",
|
||
|
"name": "head",
|
||
|
"mode": "prepend"
|
||
|
}
|
||
|
],
|
||
|
"line": 0,
|
||
|
"filename": "layout.prepend.pug"
|
||
|
}
|