This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-05-16
Channels
- # beginners (176)
- # boot (11)
- # cider (12)
- # cljs-dev (65)
- # cljsrn (54)
- # clojars (18)
- # clojure (195)
- # clojure-austin (1)
- # clojure-dev (2)
- # clojure-italy (8)
- # clojure-quebec (1)
- # clojure-russia (51)
- # clojure-serbia (3)
- # clojure-spec (24)
- # clojure-uk (28)
- # clojurescript (41)
- # cursive (14)
- # data-science (60)
- # datascript (2)
- # datomic (111)
- # emacs (6)
- # figwheel (1)
- # graphql (16)
- # hoplon (26)
- # juxt (2)
- # lein-figwheel (3)
- # lumo (12)
- # off-topic (8)
- # om (14)
- # pedestal (22)
- # perun (2)
- # proton (1)
- # re-frame (29)
- # reagent (27)
- # ring (17)
- # ring-swagger (2)
- # rum (3)
- # spacemacs (3)
- # unrepl (155)
- # untangled (28)
- # vim (4)
Noob question: Is it possible (or is there an example I can check out) of how to build hoplon in dev for an alternative web server? For example, I am used to embedding react/reagent apps into an html page (via an ID on a div tag). My web framework creates the html page and includes the reagent js file.
I understand that in the advanced optimization boot task, the HTML and JS files are emitted and are deployable.
maybe something like this is what you seek? https://github.com/alandipert/embedded-hoplon-example
https://yogthos.net/posts/2016-06-06-WorkingWithHoplon.html is another way, with lein
well, same way really. only slightly different
no prob
and good choice 👌
I’m getting the following error on boot dev
of the embedded-hoplon-example
project:
Compiling Hoplon pages...
• app/main.cljs.hl
Writing main.cljs.edn...
Compiling ClojureScript...
• main.js
java.lang.AssertionError: No ns form found in file:/path/to/embedded-hoplon-example/9ek/-grrwi1/adzerk/boot_reload.cljs
cljs.analyzer$parse_ns$fn__2110.invoke analyzer.cljc: 2761
cljs.analyzer$parse_ns.invoke analyzer.cljc: 2711
cljs.analyzer$parse_ns.invoke analyzer.cljc: 2703
cljs.closure/find-cljs-dependencies closure.clj: 733
cljs.closure/add-dependency-sources closure.clj: 800
cljs.closure/build closure.clj: 1941
cljs.build.api/build api.clj: 210
adzerk.boot-cljs.impl/compile-cljs impl.clj: 89
...
clojure.core/apply core.clj: 630
boot.pod/eval-fn-call pod.clj: 294
boot.pod/call-in* pod.clj: 315
...
boot.pod/call-in* pod.clj: 318
adzerk.boot-cljs/compile boot_cljs.clj: 71
adzerk.boot-cljs/compile-1/fn boot_cljs.clj: 126
clojure.core/binding-conveyor-fn/fn core.clj: 1916
...
I cloned the project from github and then ran boot dev
in the root… am I missing something?
I’m more than happy to track down the error if someone can point me toward the light.
Sorry for the noise, that seems to have worked. I can put a PR in if that’s helpful (just some version changes).
So, the other hang-up I have with using Hoplon with another web framework is that boot dev
doesn’t generate any JS files which I can server from a web server. Is that correct?
Or, put another way, I’m wondering how the (serve ...)
boot task gets its assets (html, and js) to serve?