2022-05-26 23:45:40 +02:00
|
|
|
import { TemplateSet } from "./runtime/template_set";
|
2022-05-26 12:11:10 +02:00
|
|
|
import { compile } from "./compiler";
|
2022-01-19 15:22:41 +01:00
|
|
|
|
2022-05-26 23:45:40 +02:00
|
|
|
export * from "./runtime";
|
2020-11-26 16:45:25 +01:00
|
|
|
|
2022-05-26 12:11:10 +02:00
|
|
|
TemplateSet.prototype._compileTemplate = function _compileTemplate(
|
|
|
|
|
name: string,
|
|
|
|
|
template: string | Element
|
|
|
|
|
) {
|
|
|
|
|
return compile(template, {
|
|
|
|
|
name,
|
|
|
|
|
dev: this.dev,
|
|
|
|
|
translateFn: this.translateFn,
|
|
|
|
|
translatableAttributes: this.translatableAttributes,
|
2024-11-07 12:26:45 +01:00
|
|
|
customDirectives: this.customDirectives,
|
2024-11-12 16:37:03 +01:00
|
|
|
hasGlobalValues: this.hasGlobalValues,
|
2022-05-26 12:11:10 +02:00
|
|
|
});
|
2020-11-26 16:45:25 +01:00
|
|
|
};
|