Split up the body into 2 divs for mounting the app seperately
This commit is contained in:
parent
d5673398f7
commit
438ff03826
3 changed files with 12 additions and 7 deletions
15
app/app.scm
15
app/app.scm
|
|
@ -1,7 +1,10 @@
|
|||
(m.mount
|
||||
document.body
|
||||
(mithril:comp
|
||||
(sxml
|
||||
(main
|
||||
(h1 "Nitinol App Template")))))
|
||||
(define repl (mithril:repl "lips> ")
|
||||
"The LIPS repl component.")
|
||||
|
||||
(define app-root (document.querySelector "#app")
|
||||
"Mount point for the application root. This is where your app should go.")
|
||||
|
||||
(m.mount
|
||||
(document.querySelector "#repl")
|
||||
repl)
|
||||
|
||||
|
|
|
|||
|
|
@ -11,6 +11,8 @@
|
|||
<script type="text/x-scheme">(load "/lib/nitinol/nitinol.scm")</script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
<div id="repl"></div>
|
||||
<!-- Load main app script. -->
|
||||
<script type="text/x-scheme" src="/app.scm"></script>
|
||||
</body>
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
Subproject commit c3520a5b323a367e1f600124641095c59cb1163d
|
||||
Subproject commit a247c89332d28d4324070ece8d5c8594ba2b9389
|
||||
Loading…
Add table
Add a link
Reference in a new issue