mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
22a79cdedd
in order to separate compiler/ and runtime/ code
17 lines
397 B
TypeScript
17 lines
397 B
TypeScript
import { TemplateSet } from "./runtime/template_set";
|
|
import { compile } from "./compiler";
|
|
|
|
export * from "./runtime";
|
|
|
|
TemplateSet.prototype._compileTemplate = function _compileTemplate(
|
|
name: string,
|
|
template: string | Element
|
|
) {
|
|
return compile(template, {
|
|
name,
|
|
dev: this.dev,
|
|
translateFn: this.translateFn,
|
|
translatableAttributes: this.translatableAttributes,
|
|
});
|
|
};
|