<commit_before># Joosy::Rails 

![Joosy](http://f.cl.ly/items/2N2J453J2B353F1A0t0I/joocy1.1.png)

Rails ties for the [Joosy](http://joosy.ws) Framework

[![Gem Version](https://badge.fury.io/rb/joosy-rails.png)](http://badge.fury.io/rb/joosy-rails)
[![Dependency Status](https://gemnasium.com/joosy/joosy-rails.png)](https://gemnasium.com/joosy/joosy-rails)

On the menu:

  * Full assets integration
  * Generators
  * Built-in serving controller
  * Routes helpers

## Installation

Add this line to your application's Gemfile:

    gem 'joosy-rails'

And then execute:

    $ bundle

## Usage

### Generators

  * `rails g joosy:application :name` – generates basic application and patches routes to make it loadable straight away.<br>
    **:name** can (and in most cases should) be ommited.<br>

  * `rails g joosy:layout :name (:application)` – generates new `Joosy.Layout`.<br>
    **:name** can include any namespace (i.e. 'deeply/nested/layout').<br>
    **:application** is a name of an application.<br>

  * `rails g joosy:page :name (:application)` – generates new `Joosy.Page`.<br>
    **:name** can include any namespace (i.e. 'deeply/nested/page').<br>
    **:application** is a name of an application.<br>

  * `rails g joosy:widget :name (:application)` – generates new `Joosy.Widget`.<br>
    **:name** can include any namespace (i.e. 'deeply/nested/widget').<br>
    **:application** is a name of an application.

### Serving controller and helpers

This gem provides `joosy` routing helper which can be used in the following way:

```ruby
joosy '/', application: 'dummy'
```

This will map your `dummy` Joosy application to the root url. Note that `application` option is optional and can be ommited just like `:name` option of the application generator.

## Contributing

1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request<commit_msg>README improved<commit_after># Joosy::Rails 

![Joosy](http://f.cl.ly/items/2N2J453J2B353F1A0t0I/joocy1.1.png)

Rails bindings for the [Joosy](http://joosy.ws) Framework.

[![Gem Version](https://badge.fury.io/rb/joosy-rails.png)](http://badge.fury.io/rb/joosy-rails)
[![Dependency Status](https://gemnasium.com/joosy/joosy-rails.png)](https://gemnasium.com/joosy/joosy-rails)

On the menu:

  * Full assets integration
  * Generators
  * Built-in serving controller
  * Routes helpers

## Installation

Add this line to your application's Gemfile:

    gem 'joosy-rails'

And then execute:

    $ bundle

## Usage

### Generators

#### rails g joosy:application (NAME)

Generates basic application and patches route to make it loadable straight away.

By default an application will be generated directly at `app/assets/javascripts`. If you want to isolate it a bit more, pass in the `NAME` argument &mdash; then it will appear at `app/assets/javascripts/NAME`.

#### rails g joosy:layout NAME (APPLICATION)

Generates Joosy layout. `NAME` can contain slashes to automatically generate corresponding path and namespace.

Note that if the application was initially generated with the usage of `NAME` option, you should pass it here as the second parameter (APPLICATION).

#### rails g joosy:page NAME (APPLICATION)

Generates Joosy page. `NAME` can contain slashes to automatically generate corresponding path and namespace.

Note that if the application was initially generated with the usage of `NAME` option, you should pass it here as the second parameter (APPLICATION).

#### rails g joosy:widget NAME (APPLICATION)

Generates Joosy widget. `NAME` can contain slashes to automatically generate corresponding path and namespace.

Note that if the application was initially generated with the usage of `NAME` option, you should pass it here as the second parameter (APPLICATION).

#### rails g joosy:controller NAME (--copy)

Generates a controller serving Joosy application using the NAME given.

By default a controller will inherit from internal `Joosy::Rails::ServeController`. If instead you want to patch it from the ground, use `--copy` option that will make generator to create raw controller that inherits from `ActionController::Base`.

### Serving controller and helpers

This gem provides `joosy` routing helper which can be used in the following way:

```ruby
joosy '/', application: 'dummy'
```

This will map your `dummy` Joosy application to the root url. The `application` option is optional. It should reflect path to application from `app/assets/javascript` (use the value that you passed into the NAME of `rails g joosy:application`).

## Maintainers

* <NAME>, [@inossidabile](http://staal.io)

## License

Copyright 2013 [<NAME>](http://staal.io)

It is free software, and may be redistributed under the terms of MIT license.
{'fraction_non_alphanumeric': 0.11364102564102564, 'fraction_numerical': 0.007589743589743589, 'mean_word_length': 4.44804469273743, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2905506', 'n_tokens_mistral': 1564, 'n_tokens_neox': 1476, 'n_words': 570}