hoplon

2023-11-21T17:46:47.918949Z

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
borkdude 2023-11-21T18:03:23.655919Z

Amazing!

2023-11-21T18:18:56.590279Z

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

🤩 1
🎉 1
borkdude 2023-11-21T18:21:52.615699Z

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

2023-11-21T18:24:01.041279Z

https://jsfiddle.net/xbgj6v1q/1/

2023-11-21T18:24:07.523029Z

this is so freaking awesome

borkdude 2023-11-21T18:25:34.015839Z

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

2023-11-21T18:25:56.344439Z

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

borkdude 2023-11-21T18:26:32.162749Z

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
borkdude 2023-11-21T18:27:46.021509Z

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

2023-11-21T18:34:12.238179Z

thanks! sent

👍 2
2023-11-21T18:43:28.265009Z

https://twitter.com/borkdude/status/1727031314086535497 for those inclined to retweet

dave 2023-11-21T19:14:09.411599Z

That's super cool!

3
2023-11-21T21:02:23.560329Z

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

❤️ 5
2023-11-23T14:29:10.125079Z

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.

2023-11-23T17:43:05.388799Z

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

2023-11-23T18:08:14.014699Z

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

2023-11-23T22:29:35.514859Z

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