Questions tagged [hoplon]

An open source ClojureScript framework. Hoplon provides a spreadsheet-like dataflow programming environment and unifies the DOM with the dynamic environment. Page markup in Hoplon is simply Lisp expressions which are evaluated when the page loads to produce the DOM.

20 questions
5
votes
1 answer

Create a keyword from a number

tl;dr How can I derive a keyword from a number in ClojureScript: (keyword 22) ;;=> :22 but in fact returns nil. Background In my ClojureScript/Hoplon application I make HTTP requests via cljs-http. Parts of the response I receive look like…
beatngu13
  • 7,201
  • 6
  • 37
  • 66
5
votes
1 answer

How to associate .hl files to Clojure syntax highlighting in Light Table?

I'd like to get Hoplon (http://hoplon.io/) code highlighted using Light Table.
leontalbot
  • 2,513
  • 1
  • 23
  • 32
5
votes
1 answer

How do I embed HTML entities in text in a Hoplon page?

I'm trying to render HTML entities in Hoplon using the following: (a :href "#" :class "deck-prev-link" :title "Previous" "←") But instead of an arrow, it's displaying the literal ← in the rendered page. What am I missing?
Micha Niskin
  • 197
  • 1
  • 10
2
votes
1 answer

Translate javascript to Clojurescript

Basically, I'm new to programming and was told to start with Clojure and Hoplon (which, uses Clojurescript). I'm trying to translate the Google Analytics code to clojurescript, and I realized I have no idea how to go about it. Can someone please…
Aaron
  • 801
  • 6
  • 13
1
vote
1 answer

Hoplon With Castra Error Loading The Backend

I have been having a similar problem for a while. When I use the following in my 'build.boot' it doesn't load the backend until I go in and edit a backend file and then save. I was wondering how I can get it to load the backend on 'boot…
phlie
  • 1,335
  • 3
  • 10
  • 19
1
vote
0 answers

Using the Boot-clj REPL to load Clojurescript functions in a Castra/Hoplon project

I am having quiet a bit of trouble with the boot-clj nREPL. I connect using cider-jack-in in EMACS and then at the top it displays the correct port and on the bottom it shows 'boot.user=>' but I am having trouble loading cljs functions from the…
phlie
  • 1,335
  • 3
  • 10
  • 19
1
vote
1 answer

Boot and Hoplon not loading the CSS file and the images in the 'resources' folder

I have been using the Boot build tool with Hoplon and a Castra backend for a bit but recently have come across a glitch that I don't quite seem to understand. It happens across all my Hoplon projects often. The problem seems to be that when I go to…
phlie
  • 1,335
  • 3
  • 10
  • 19
1
vote
1 answer

Conditional statements in Clojurescript with Hoplon and cells not working

I have a question regarding conditionals and Hoplon. When I try: (defn mouse-enter [temp stuff] (reset! temp @stuff) (if (= "y" "y") (reset! mon-width {:width "0%"}))) It changes the CSS width property to 0, but, if I try using a cell…
phlie
  • 1,335
  • 3
  • 10
  • 19
1
vote
1 answer

When use Pedestal, Hoplon, Bidi and Route-one?

I am trying figure out which one (Pedestal, Hoplon, Bidi) should i use? I didn't find any good article in the Internet which help me with this choice. From https://github.com/juxt/bidi i can read Pedestal is isomorphic, but Bidi is also cljs. What…
kabra
  • 1,306
  • 1
  • 17
  • 24
1
vote
0 answers

boot development in hoplon not working

In a hoplon project, by executing: boot development, i get these errors: I/O exception (java.net.SocketException) caught when connecting to the target host: Network is unreachable Failed to collect dependencies for [#
Hermansson
  • 27
  • 4
1
vote
1 answer

Is there an open source project that uses Hoplon and that handles web authentification?

I am looking for something similair to noir-auth-app but made with hoplon. Thanks!
leontalbot
  • 2,513
  • 1
  • 23
  • 32
0
votes
1 answer

How to do a Hoplon CLJS Server or AJAX Call

I am using Hoplon to create a fairly simple site and an stuck on the AJAX part. In the past I have used Castra as the backend but since it is no longer maintained I have switched to a normal LuminusWeb backend. I am in need of making a call to the…
phlie
  • 1,335
  • 3
  • 10
  • 19
0
votes
1 answer

How to pass an array into Hoplon from a Castra backend

If I am trying to an array into the index.cljs.hl page how do I go about using the array in Clojurescript. I found that I can use: (loop-tpl :bindings [single-data rpc/test-vector] (h2 single-data)) In the hLisp part but if I want to use the…
phlie
  • 1,335
  • 3
  • 10
  • 19
0
votes
1 answer

Passing a Cell to a defelem Hoplon

Say I had the following custom textarea, how can I pass the etextarea a Cell and have both the :change and the :value work? (defelem etextarea [temp-cell] (textarea :value temp-cell :change #(reset! temp-cell @%))) The code can be…
phlie
  • 1,335
  • 3
  • 10
  • 19
0
votes
1 answer

How to Switch Tags in Hoplon

If I have the following code and a function to switch from 'p' tag to 'h1' tag: (def switch-tag (cell p)) And later on in the hlisp ((cell= switch-tag) "Text goes here") How come when I switch to the h1 tag nothing seems to happen.
phlie
  • 1,335
  • 3
  • 10
  • 19
1
2