You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
svelte/compiler/index.js

11 lines
255 B

import parse from './parse/index.js';
import generate from './generate/index.js';
export function compile ( template ) {
const parsed = parse( template );
// TODO validate template
const generated = generate( parsed, template );
return generated;
}