This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-01-02
Channels
- # announcements (5)
- # babashka (1)
- # beginners (140)
- # braveandtrue (1)
- # calva (28)
- # chlorine-clover (39)
- # cider (8)
- # clj-kondo (1)
- # cljfx (15)
- # cljs-dev (2)
- # clojure (41)
- # clojure-europe (39)
- # clojure-france (3)
- # clojure-germany (5)
- # clojurescript (28)
- # clr (1)
- # css (1)
- # cursive (3)
- # data-science (19)
- # fulcro (14)
- # graalvm (3)
- # hoplon (18)
- # jobs (2)
- # malli (7)
- # meander (2)
- # off-topic (10)
- # pathom (6)
- # re-frame (3)
- # reagent (2)
- # remote-jobs (1)
- # reveal (1)
- # shadow-cljs (5)
sente is pretty awesome ig, I’m familiar with it, but I’m looking for a more lightweight approach like castra. Like, I read and understood the entire codebase in like minutes.
@guswill nope, just include the hoplon.goog
namespace and you will use the google closure attribute providers instead of jquery
good to know @jjttjj. everything works 100% with google closure? why isn’t it the default?
I believe so, at least in theory. I haven't been doing web stuff in a bit, but I always used just the goog providers. It's easy to patch up anything you need though if not. The functionality is just implemented via the do!
multimethod for an attribute keyword, so you can just extend this multimethod yourself. https://github.com/hoplon/hoplon/wiki/Attribute-Providers
I can’t find any recent hoplon project or template.... anyone willing to share a recent one?
I don't think there's a good proper template. I would just look for a barebones cljs template (possibly shadow-cljs) then add the hoplon dep. then (:require [hoplon.core :as h] [hoplon.goog])
and then start hacking :)
makes sense, thanks... most of the examples use Boot but it isn’t strictly necessary ig.
Boot and the boot plugins really only add the ability to use .hl
files and the page
declaration. Just my opinion, but I wouldn't use those anymore anyway and just stick to regular cljs files with a "traditional" entry point mechanism like either of those projects you sent use
@guswill The conduit one was written by yours truly ~ a year ago. I've added a few Hoplon projects to my belt since then and, although I'd do a few things differently today (like avoiding nested cells=), overall that's still pretty much the way I still do Hoplon + shadow-cljs nowadays.
It does use jquery and tbh it doesn't affect performance (which you can checkout here: https://hoplon-realworld.netlify.app/) nor the final bundle size. Even with the full jquery lib bundled, It compares very favorably to other implementations: final size -> middle of the pack, total loc -> top 3.