-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.is
40 lines (32 loc) · 1022 Bytes
/
app.is
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
37
38
39
40
_module "Main"
(_use "stdlib")
(_use "./src/virtualdom.is")
(_import "./src/http.is" _all)
(_import "./src/actions.is" _all)
(_import "./src/data-streams.is" _all)
(_import "./src/flask.is" _all)
(_import "./src/header.is" _all)
(_import "./src/hero.is" _all)
(_import "./src/homepage.is" _all)
(_import "./src/tryonline.is" _all)
(_import "./src/footer.is" _all)
[defun COMPONENTS.app (props)
[T "body"
[T "Header"]
[T "Hero"]
[T "HomepageMain"]
[T "TryOnline"]
[T "Footer"]
]
]
(update "app-root" [T "app"])
( @{
document.getElementById("app-body").className += " hide";
}@ NIL)
(update "show-website-src" [T "code" (ajax-get-file "/samples/quine.is") ] )
[flask = (FLASK.init "#editor")]
[DATA-STREAMS.source-code-stream = (_stream FLASK.magic flask)]
(_do (_on DATA-STREAMS.sample-program-stream (_begin
(FLASK.update flask (_pull DATA-STREAMS.sample-program-stream) )
(_push DATA-STREAMS.source-code-stream (_pull DATA-STREAMS.sample-program-stream) )
) ) )