|
|
|
@ -15,7 +15,7 @@ import Text from './handlers/Text.js';
|
|
|
|
import Title from './handlers/Title.js';
|
|
|
|
import Title from './handlers/Title.js';
|
|
|
|
import { collapse_template_literal } from '../utils/collapse_template_literal.js';
|
|
|
|
import { collapse_template_literal } from '../utils/collapse_template_literal.js';
|
|
|
|
import { escape_template } from '../utils/stringify.js';
|
|
|
|
import { escape_template } from '../utils/stringify.js';
|
|
|
|
function noop() { }
|
|
|
|
function noop() {}
|
|
|
|
|
|
|
|
|
|
|
|
/** @type {Record<string, Handler>} */
|
|
|
|
/** @type {Record<string, Handler>} */
|
|
|
|
const handlers = {
|
|
|
|
const handlers = {
|
|
|
|
@ -41,7 +41,6 @@ const handlers = {
|
|
|
|
};
|
|
|
|
};
|
|
|
|
/** */
|
|
|
|
/** */
|
|
|
|
export default class Renderer {
|
|
|
|
export default class Renderer {
|
|
|
|
|
|
|
|
|
|
|
|
/** @default false */
|
|
|
|
/** @default false */
|
|
|
|
has_bindings = false;
|
|
|
|
has_bindings = false;
|
|
|
|
|
|
|
|
|
|
|
|
@ -126,7 +125,6 @@ export default class Renderer {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** @typedef {(node: any, renderer: Renderer, options: CompileOptions) => void} Handler */
|
|
|
|
/** @typedef {(node: any, renderer: Renderer, options: CompileOptions) => void} Handler */
|
|
|
|
|
|
|
|
|
|
|
|
/** @typedef {Object} RenderOptions
|
|
|
|
/** @typedef {Object} RenderOptions
|
|
|
|
|