cemerick / austin

The ClojureScript browser-REPL rebuilt stronger, faster, easier.
510 stars 31 forks source link

Hot reloading of HTML files not working in example project #59

Closed featureenvy closed 10 years ago

featureenvy commented 10 years ago

This might be one of those things that are simply "working as intended", but I realized that hot reloading of HTML isn't working.

As a Clojure newbie I just wanted to find a ClojureScript template that would just work to get my hands dirty with cljs. I tried to figure out why, but I only discovered that Ring technically supports hot reloading.

Is there a way around it?

cemerick commented 10 years ago

Not sure what you're asking about here. Austin doesn't do anything re: HTML files.

claybridges commented 10 years ago

@cemerick Caveat: very much appreciate your work in this domain.

That said, as a complete neophyte in this domain, I had better luck getting a toy project running in browser against a cljs REPL with mondrian, which itself is running on piggieback. Mondrian has a lein template, and there's a nice -- if very hand-holdy -- tutorial to messing with it. After playing around with the mondrian stuff a little, I commented it out, and I have a pretty generic cljs repl project going, which has no problem hot-reloading the index.html.

cemerick commented 10 years ago

Thanks for the kind words. :-) Of course, use whatever toolchain works for you, etc.

Though, I'm still unclear on what you mean by "hot-reloading HTML". To me, that means that e.g. your browser reloads the page you're working on automatically after each write (or, in more integrated environments, a web view refreshing on each keystroke). Such functionality is (of course?) not in Austin's purview.

cemerick commented 10 years ago

No action here for a while, and I don't have the use case, so closing. If mondrian better handles the workflow in question, use mondrian. :-)