forked from viur-framework/flare
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhello.html
36 lines (33 loc) · 826 Bytes
/
hello.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="assets/css/style.css"/>
<script src="assets/js/flare.js"></script>
<script>
window.addEventListener(
"load",
() => {
new flare({
// Packages to preload. This can also be specified in the kickoff-code as import.
//packages: ["python-dateutil"],
// Fetch location for locally available Python modules
fetch: {
"flare": {
"path": "flare"
}
},
// Python code to be finally executed
// language=Python
kickoff: `
from flare import *
html5.Body().appendChild('<a href="https://www.viur.dev">Hello World</a>')
flare.popup.Alert("Hello World")
`
});
});
</script>
</head>
<body class="is-loading">
</body>
</html>