README.md in gon-6.1.0 vs README.md in gon-6.2.0

- old
+ new

@@ -14,10 +14,12 @@ For Sinatra available [gon-sinatra](https://github.com/gazay/gon-sinatra). For .Net MVC available port [NGon](https://github.com/brooklynDev/NGon). +For elixir Phoenix available [PhoenixGon](https://github.com/khusnetdinov/phoenix_gon). + <a href="https://evilmartians.com/?utm_source=gon"> <img src="https://evilmartians.com/badges/sponsored-by-evil-martians.svg" alt="Sponsored by Evil Martians" width="236" height="54"> </a> ## An example of typical use @@ -43,26 +45,26 @@ With gon you configure it firstly - just put in layout one tag, and add gem line to your Gemfile and do the following: 1. Write variables by - ``` ruby + ``` ruby gon.variable_name = variable_value # or new syntax gon.push({ :user_id => 1, :user_role => "admin" }) gon.push(any_object) # any_object with respond_to? :each_pair - ``` + ``` 2. In your js you get this by - ``` js + ``` js gon.variable_name - ``` + ``` 3. profit? With the `gon.watch` feature you can easily renew data in gon variables! Simply call `gon.watch` from your js file. It's super useful