CloServe is a view first web framework in Clojure. It is inspired by the Lift web framework
JavaScript Clojure
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
externs
resources/public/js use wss in cljs when connection is with https Sep 22, 2017
src remove debug print of req Sep 22, 2017
.gitignore initial code commit Nov 4, 2013
LICENSE Initial commit Nov 4, 2013
README.md
project.clj

README.md

closerve

CloServe is a view first web framework in Clojure. It is inspired by the Lift web framework

Contrubution by:

Installation

Currently I have not setup a clojar download yet. You need to git clone this project to your local disk. Then run:

lein cljsbuild clean

lein install

This will add CloServe to your local maven repo.

In your project that use CloServe, you can add to project.clj file dependencies:

[closerve "0.2.0-SNAPSHOT"]

Example Code

Running Example

##Breaking change from 0.1.0 to 0.2.0 register-lift-snippet macro's lift-instr parameter used to be: {:name SnippetName, :params {...}} Now it is just the :params part, so for eg, in 0.1.0 code, to get a lift parameter, the call is:

(get-in lift-instr [:params "SomeParameter"])

Now it is:

(lift-instr "SomeParameter")

Current Status

This project is in very beta stage. Quite some debug message will be thrown to the console. The apis could change a lot in the future. Could have security issuses as well.

It is quite functional though, so I am using it to run my own website MKRRF IT.

Acknowledgements

In addition to a lot of fantastic Clojure libraries (jetty7-websockets-async, core.async, ring, hickory, jayq, clojurescript, crypto-random ..., a lot is learnt from torus-pong about cljs and ws.

License

Copyright © 2013 Jiawei Zhao, MKRRF IT Limited

Distributed under the Eclipse Public License, the same as Clojure.

The files that are marked as from third party (for eg, the js files under extern/) belongs to the corresponding third party and have their own corresponding license.