hoplon 2023-11-21

And it is alive. Thanks to @borkdude for all the help getting this done.


<html>
  <head>
    <script src="" type="application/javascript"></script>
    <script src="" type="application/javascript"></script>
    <script src="" type="application/javascript"></script>
    <script type="application/x-scittle">
(require '[hoplon.core :as h])
(require '[javelin.core :as j])

(j/defc title "From Hoplon")

(h/body
  (h/h1 title))
    </script>
  </head>
  <body>
  </body>
</html>

❤️ 4
🎉 2

10 year old tic tac toe demo running beautifully with scittle 😍

🤩 1
🎉 1

@alandipert can you paste the app.cljs source as a gist or so?

this is so freaking awesome

ah yeah, I wanted to make a fiddle but you did it already :-D

is there a way to have a cljs pane in fiddle or something like it?

don't know, if you can get to the DOM node you can extract the innerText and then evaluate with:

scittle.core.eval_string

👍 1

@alandipert @mynomoto Perhaps worth a message in #announcements This is a nice demo

That's super cool!

3

just realized we can make the demos on http://hoplon.io editable now 💡

❤️ 5

I plan to make a live code example for each Hoplon feature using this. I already have all I want to show in a single file but it is too much. And I also want to move https://github.com/hoplon/demos to the same setup.

that's awesome. i can imagine turning into that a live tutorial

I wonder if something like the http://clojurescriptkoans.com/ would make sense for learning Hoplon.

to someone i'm sure, personally i'm not a fan.. like something i can see all at once and jump around, try things