mirror of https://github.com/sveltejs/svelte
10 lines
261 B
10 lines
261 B
8 years ago
|
import deindent from '../utils/deindent.js';
|
||
|
|
||
|
export default {
|
||
|
enter ( generator, node ) {
|
||
|
generator.current.initStatements.push( deindent`
|
||
|
${generator.current.target}.appendChild( document.createTextNode( ${JSON.stringify( node.data )} ) );
|
||
|
` );
|
||
|
}
|
||
|
};
|