Skip to content

Client-side projects #47

@danielsz

Description

@danielsz

Client-side projects don't necessarily have a server component (and shouldn't be required to have one).
Take for example the basic tutorial for om: https://github.com/swannodette/om/wiki/Basic-Tutorial
That tutorial has instructions for starting a Clojurescript repl in LightTable.

"Type the key chord Control-SPACE to open up the command list. Start typing Add Connection, press enter to select it. In the list of options select Browser (External). Copy and paste the script tag into index.html before the div tag."

And that's all there is to it.

I tried to emulate that tutorial for Austin. I started an Austin repl like so:

(def repl-env (reset! cemerick.austin.repls/browser-repl-env
                      (cemerick.austin/repl-env)))

Then I looked at the value of

(cemerick.austin.repls/browser-connected-repl-js)

and used it for manual inclusion in the index.html.

I made sure that the cljs source requires

:require [clojure.browser.repl]

Loading index.html does initiates a connection, but errors out with this message:

Uncaught Error: URI file://localhost/robots.txt is invalid for field ppu

Can this be fixed?

If LightTable can do it, I'm hopeful Austin can too.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions