[REF] add static App.registerTemplate and update Portal to use it

The goal is to get closer to the possibility of using Owl without the
compiler. This commit removes Portal dependency on the compiler, and
opens the way to register pre-compiled template functions.
This commit is contained in:
Géry Debongnie
2022-05-26 22:42:25 +02:00
committed by Sam Degueldre
parent 2b4d8874c7
commit b10a700381
6 changed files with 44 additions and 25 deletions
+1 -2
View File
@@ -16,10 +16,9 @@ import {
xml,
} from "../src";
import { helpers } from "../src/app/template_helpers";
import { TemplateSet } from "../src/app/template_set";
import { TemplateSet, globalTemplates } from "../src/app/template_set";
import { BDom } from "../src/blockdom";
import { compile } from "../src/compiler";
import { globalTemplates } from "../src/utils";
const mount = blockDom.mount;