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

13 lines
306 B

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