CHP - Clojure Web Framework
github.com
CHP - Clojure Web Framework
1–10 of 10 posts
Re: CHP - Clojure Web Framework
#2Re: CHP - Clojure Web Framework
#3Re: CHP - Clojure Web Framework
#4Re: CHP - Clojure Web Framework
#5After a quick look, it really looks more like a collection of tools the author likes to use (though the tags look new, is this a security issue?), like Lobos and parts of Hiccup.
I think it is a pretty good job overall, but the routes are rather verbose. I wish this was a problem people would spend more time solving.
Re: CHP - Clojure Web Framework
#6I suspect some of the new bits could/should probably be split out into a library of their own, leaving CHP itself as pure glue.
Re: CHP - Clojure Web Framework
#7Re: CHP - Clojure Web Framework
#8Will this make sure you're not going too fast?
(for those unfamiliar: http://en.wikipedia.org/wiki/California_Highway_Patrol )
Re: CHP - Clojure Web Framework
#9One of the examples contains a 21K loc JS file. That's excessive. If I used this, I'd keep the HTML generation but skip the JS generation.
You can get the ClojureScript runtime much smaller by turning on the Closure (with an S) compiler's optimizations. Still gonna be bigger than vanilla JS, but for that you get a much more expressive language and the ability to share client and server side code.
The debate over whether/when it's appropriate to use CLJS is surely not over. Before judging it as impractical, note that a new iOS weather app written in ClojureScript is getting rave reviews: http://keminglabs.com/blog/angular-cljs-weather-app/