Comparing version 1.0.0-beta-30 to 1.0.0-beta-31
{ | ||
"name": "fairmont", | ||
"version": "1.0.0-beta-30", | ||
"version": "1.0.0-beta-31", | ||
"description": "Functional reactive programming for JavaScript and CoffeeScript.", | ||
@@ -38,3 +38,3 @@ "files": [ | ||
"fairmont-core": "^1.0.0-beta-21", | ||
"fairmont-helpers": "^1.0.0-beta-21", | ||
"fairmont-helpers": "^1.0.0-beta-22", | ||
"fairmont-multimethods": "^1.0.0-beta-19", | ||
@@ -41,0 +41,0 @@ "fairmont-reactive": "^1.0.0-beta-32", |
@@ -16,3 +16,3 @@ # Fairmont | ||
## Example | ||
## Examples | ||
@@ -31,8 +31,8 @@ Here's a simple reactive Web app implementing a counter using Fairmont's Reactive programming functions. | ||
F.start(F.flow([ | ||
F.go([ | ||
F.events("click", $("a[href='#increment']")), | ||
F.map(function() { data.counter++; }) | ||
])); | ||
]); | ||
F.start(F.flow([ | ||
F.go([ | ||
F.events("change", F.observe(data)), | ||
@@ -43,3 +43,3 @@ F.map(function() { | ||
}) | ||
])); | ||
]); | ||
}); | ||
@@ -60,3 +60,3 @@ | ||
start flow [ | ||
go [ | ||
events "click", $("a[href='#increment']") | ||
@@ -66,3 +66,3 @@ map -> data.counter++ | ||
start flow [ | ||
go [ | ||
events "change", observe data | ||
@@ -75,4 +75,5 @@ map -> | ||
Check out our other reactive examples: | ||
You can run [this example][] or look at our other reactive examples: | ||
- a [todo-list][] | ||
- an [echo server][] | ||
@@ -82,2 +83,4 @@ - a [Web server][] | ||
[this example]:https://github.com/pandastrike/fairmont-reactive/blob/master/examples/web-apps/counter | ||
[todo-list]:https://github.com/pandastrike/fairmont-reactive/blob/master/examples/web-apps/todo-list | ||
[echo server]:https://github.com/pandastrike/fairmont-reactive/blob/master/examples/echo-server.litcoffee | ||
@@ -84,0 +87,0 @@ [Web server]:https://github.com/pandastrike/fairmont-reactive/blob/master/examples/web-server.litcoffee |
Sorry, the diff of this file is not supported yet
83958
125