Skip to content

Commit

Permalink
Version 0.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
tonsky committed Feb 2, 2015
1 parent 316257c commit a10a41f
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 402 deletions.
12 changes: 9 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,23 +27,25 @@ Add this to your `project.clj`:

```clojure
:dependencies [
[org.clojure/clojurescript "0.0-2727"]
[rum "0.2.1"]
[org.clojure/clojurescript "0.0-2758"]
[rum "0.2.2"]
]
```

Simplest example defines component, instantiates it and mounts it on a page:

```clojure
(ns example
(:require [rum :include-macros true]))
(:require [rum]))

(rum/defc label [n text]
[:.label (repeat n text)])

(rum/mount (label 5 "abc") (.-body js/document))
```

Note: _For cljs 2755 and earlier use `(:require [rum :include-macros true])`_

For more examples, see [examples/examples.cljs](examples/examples.cljs). Live version of examples [is here](http://tonsky.me/rum/)

## Rum API
Expand Down Expand Up @@ -277,6 +279,10 @@ This is a detailed breakdown of what happens inside of Rum. By using `rum/defc`,

## Changes

### 0.2.2

- Compatibility with clojurescript 0.0-2758, macros included by default when `(:require rum)`

### 0.2.1

- Updated deps to clojurescript 0.0-2727, react 0.12.2-5 and sablono 0.3.1
Expand Down
2 changes: 1 addition & 1 deletion examples/examples.cljs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
(ns examples
(:require
[clojure.string :as str]
[rum :include-macros true]))
[rum]))

(enable-console-print!)

Expand Down
4 changes: 2 additions & 2 deletions project.clj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(defproject rum "0.2.1-SNAPSHOT"
(defproject rum "0.2.2"
:description "ClojureScript wrapper for React"
:url "https://github.com/tonsky/rum"
:license {:name "Eclipse Public License"
Expand All @@ -7,7 +7,7 @@
:source-paths ["src"]
:dependencies [
[org.clojure/clojure "1.6.0" :scope "provided"]
[org.clojure/clojurescript "0.0-2727" :scope "provided"]
[org.clojure/clojurescript "0.0-2758" :scope "provided"]
[cljsjs/react "0.12.2-5"]
[sablono "0.3.1"]
]
Expand Down
5 changes: 3 additions & 2 deletions src/rum.cljs
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
(ns rum
(:require-macros rum)
(:require [cljsjs.react]
[sablono.core]))
(:require
[cljsjs.react]
[sablono.core]))

(enable-console-print!)

Expand Down
395 changes: 1 addition & 394 deletions web/rum.js

Large diffs are not rendered by default.

0 comments on commit a10a41f

Please sign in to comment.