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

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