Skip to content

Commit

Permalink
Merge pull request breach#270 from solicode/readme-clojure
Browse files Browse the repository at this point in the history
Added Clojure language binding information to README.md
  • Loading branch information
miketheprogrammer committed Mar 21, 2015
2 parents 6a14cc5 + 615403d commit 9484a7f
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ npm install -g \
- [Go](#go)
- [Python](#python)
- [Scala](#scala)
- [Clojure](#clojure)
- [API Reference](#api-reference)
- [Architecture](#architecture)
- [Community](#community)
Expand Down Expand Up @@ -144,6 +145,33 @@ object Main extends App {

- **scala-thrust** [eklavya/scala-thrust](https://github.com/eklavya/scala-thrust/)

### Clojure

##### Getting Started

- [Installation](https://github.com/solicode/clj-thrust#installation)
- [Sample Project](https://github.com/solicode/clj-thrust#sample-project)

```clojure
(ns my-app.core
(:require [clj-thrust.core :refer [create-process destroy-process]]
[clj-thrust.window :as w]))

(let [process (create-process) ; `create-process` also takes path to Thrust directory
window (w/create-window process
:root-url "http://localhost:8080" ; URL to your web app
:size {:width 400 :height 300})]
(w/listen-closed window
(fn [e]
(destroy-process process))) ; Optionally call `(System/exit 0)` here.
(w/show window)
(w/focus window true))
```

##### Library

- **clj-thrust** [solicode/clj-thrust](https://github.com/solicode/clj-thrust)

***
## API Reference

Expand Down

0 comments on commit 9484a7f

Please sign in to comment.