|
|
@ -11,7 +11,7 @@ import Slot from './handlers/Slot';
|
|
|
|
import Tag from './handlers/Tag';
|
|
|
|
import Tag from './handlers/Tag';
|
|
|
|
import Text from './handlers/Text';
|
|
|
|
import Text from './handlers/Text';
|
|
|
|
import Title from './handlers/Title';
|
|
|
|
import Title from './handlers/Title';
|
|
|
|
import { CompileOptions } from '../../interfaces';
|
|
|
|
import { AppendTarget, CompileOptions } from '../../interfaces';
|
|
|
|
|
|
|
|
|
|
|
|
type Handler = (node: any, renderer: Renderer, options: CompileOptions) => void;
|
|
|
|
type Handler = (node: any, renderer: Renderer, options: CompileOptions) => void;
|
|
|
|
|
|
|
|
|
|
|
@ -36,8 +36,6 @@ const handlers: Record<string, Handler> = {
|
|
|
|
Window: noop
|
|
|
|
Window: noop
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
type AppendTarget = any; // TODO
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export default class Renderer {
|
|
|
|
export default class Renderer {
|
|
|
|
has_bindings = false;
|
|
|
|
has_bindings = false;
|
|
|
|
code = '';
|
|
|
|
code = '';
|
|
|
|