Split up the body into 2 divs for mounting the app seperately

This commit is contained in:
Jakub 2026-07-12 21:06:50 +08:00
parent d5673398f7
commit 438ff03826
3 changed files with 12 additions and 7 deletions

View file

@ -1,7 +1,10 @@
(m.mount (define repl (mithril:repl "lips> ")
document.body "The LIPS repl component.")
(mithril:comp
(sxml (define app-root (document.querySelector "#app")
(main "Mount point for the application root. This is where your app should go.")
(h1 "Nitinol App Template")))))
(m.mount
(document.querySelector "#repl")
repl)

View file

@ -11,6 +11,8 @@
<script type="text/x-scheme">(load "/lib/nitinol/nitinol.scm")</script> <script type="text/x-scheme">(load "/lib/nitinol/nitinol.scm")</script>
</head> </head>
<body> <body>
<div id="app"></div>
<div id="repl"></div>
<!-- Load main app script. --> <!-- Load main app script. -->
<script type="text/x-scheme" src="/app.scm"></script> <script type="text/x-scheme" src="/app.scm"></script>
</body> </body>

@ -1 +1 @@
Subproject commit c3520a5b323a367e1f600124641095c59cb1163d Subproject commit a247c89332d28d4324070ece8d5c8594ba2b9389