Files
owl/src/index.ts
T

19 lines
485 B
TypeScript
Raw Normal View History

2022-05-26 23:45:40 +02:00
import { TemplateSet } from "./runtime/template_set";
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
TemplateSet.prototype._compileTemplate = function _compileTemplate(
name: string,
template: string | Element
) {
return compile(template, {
name,
dev: this.dev,
translateFn: this.translateFn,
translatableAttributes: this.translatableAttributes,
customDirectives: this.customDirectives,
hasGlobalValues: this.hasGlobalValues,
});
2020-11-26 16:45:25 +01:00
};