mirror of https://github.com/sveltejs/svelte
parent
f88788cc29
commit
8148230e49
@ -1,4 +1,4 @@
|
||||
export default function visitMustacheTag ( generator, fragment, node ) {
|
||||
const { snippet } = generator.contextualise( fragment, node.expression );
|
||||
export default function visitMustacheTag ( generator, block, node ) {
|
||||
const { snippet } = generator.contextualise( block, node.expression );
|
||||
generator.append( '${__escape( ' + snippet + ' )}' );
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
export default function visitRawMustacheTag ( generator, fragment, node ) {
|
||||
const { snippet } = generator.contextualise( fragment, node.expression );
|
||||
export default function visitRawMustacheTag ( generator, block, node ) {
|
||||
const { snippet } = generator.contextualise( block, node.expression );
|
||||
generator.append( '${' + snippet + '}' );
|
||||
}
|
@ -1,3 +1,3 @@
|
||||
export default function visitText ( generator, fragment, node ) {
|
||||
export default function visitText ( generator, block, node ) {
|
||||
generator.append( node.data.replace( /\${/g, '\\${' ) );
|
||||
}
|
Loading…
Reference in new issue