mirror of https://github.com/sveltejs/svelte
parent
52815b3313
commit
4bcbdfb5ae
@ -0,0 +1,11 @@
|
|||||||
|
export default function _yield ( parser ) {
|
||||||
|
const start = parser.index;
|
||||||
|
|
||||||
|
parser.current().children.push({
|
||||||
|
start,
|
||||||
|
end: parser.index,
|
||||||
|
type: 'YieldTag'
|
||||||
|
});
|
||||||
|
|
||||||
|
return null;
|
||||||
|
}
|
@ -0,0 +1 @@
|
|||||||
|
{{yield}}
|
@ -0,0 +1,14 @@
|
|||||||
|
{
|
||||||
|
"html": {
|
||||||
|
"start": 0,
|
||||||
|
"end": 9,
|
||||||
|
"type": "Fragment",
|
||||||
|
"children": [
|
||||||
|
{
|
||||||
|
"start": 0,
|
||||||
|
"end": 9,
|
||||||
|
"type": "YieldTag"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in new issue