[DOC] move quick_start into learning/ sub folder

This commit is contained in:
Géry Debongnie
2019-10-30 09:54:24 +01:00
parent 9106c19066
commit 5ba73cc09d
2 changed files with 15 additions and 7 deletions
@@ -2,8 +2,17 @@
## Static Server
Let us assume that we have a static server running somewhere. We could then
simply add an html page with a few extra files.
Let us assume that we have a static server running somewhere. Let us start by
adding an html page with a few extra files:
```
my-app/
index.html
app.css
app.js
owl-X.Y.Z.js
templates.xml
```
### HTML and CSS
@@ -88,10 +97,9 @@ class ClickCounter extends owl.Component {
//------------------------------------------------------------------------------
async function start() {
const templates = await owl.utils.loadFile("templates.xml");
const env = {
qweb: new owl.QWeb({ templates })
};
const counter = new ClickCounter(env);
const qweb = new owl.QWeb({ templates });
owl.config.env.qweb = qweb;
const counter = new ClickCounter();
const target = document.getElementById("main");
await counter.mount(target);
}
+1 -1
View File
@@ -65,7 +65,7 @@ Note that for convenience, the `useState` hook is also exported at the root of t
## Learning Resources
- [Quick Start](quick_start.md)
- [Quick Start: create an (almost) empty Owl application](learning/quick_start.md)
## Miscellaneous