Skip to content
Browse files

Readme

  • Loading branch information...
1 parent 4e5097c commit 3f4d521c25fba17c0ff5377c5b0a6c55ed62ed49 @gazay committed Jul 24, 2012
Showing with 25 additions and 0 deletions.
  1. +7 −0 CHANGELOG.md
  2. +18 −0 README.md
View
7 CHANGELOG.md
@@ -1,5 +1,12 @@
# CHANGELOG
+## 4.0.0
+
+ * Added gon.watch functionality (thanks to @brainopia and @kossnocorp)
+ * Compatibility with jbuilder paths for partial! method
+ * Fixed some bugs
+ * Little bit refactoring - Gon now is a class
+
## 3.0.3
* Include ActionView::Helpers into Gon::JBuilder
View
18 README.md
@@ -7,6 +7,8 @@
If you need to send some data to your js files and you don't want to do this with long way through views and parsing - use this force!
+Now you can easily renew data in your variables through ajax with [gon.watch](https://github.com/gazay/gon/wiki/Usage-gon-watch)!
+
With [Jbuilder](https://github.com/rails/jbuilder) and [Rabl](https://github.com/nesquena/rabl) support!
For Sinatra available [gon-sinatra](https://github.com/gazay/gon-sinatra).
@@ -50,6 +52,11 @@ gem line to your Gemfile and do the following:
3. profit?
+With `gon.watch` feature you can easily renew data in gon variables!
+Just pass option `:watch => true` to `include_gon` method and call
+`gon.watch` from your js file. It's super useful in modern web
+applications!
+
## Usage
### More details about configuration and usage you can find in [gon wiki](https://github.com/gazay/gon/wiki)
@@ -97,6 +104,17 @@ alert(gon.your_array)
alert(gon.your_hash)
```
+## gon.watch - renew your data easily!
+
+You can use gon for renewing your data without reloading pages and
+writing long js functions! It's really
+great for some live values.
+
+Supports `gon.watch.rabl` and `gon.watch.jbuilder` usage.
+
+[Instruction](https://github.com/gazay/gon/wiki/Usage-gon-watch) for
+usage gon.watch.
+
## Usage with Rabl
You can write your variables assign logic to templates with [Rabl](https://github.com/nesquena/rabl).

0 comments on commit 3f4d521

Please sign in to comment.
Something went wrong with that request. Please try again.