<commit_before># Nice 'n' Easy

> "Lets take it nice and easy  
> Its gonna be so easy  
> ...  
> cause nice and easy does it every time"

A set of Sinatra HTML view helpers to make your life nicer and easier.
It includes helpers for form fields, links, and assets.

In designing the library I tried to limit my use of external libs as much as possible.
In particular, I found a number of similar Sinatra HTML helpers but a number included all of
ActiveSupport.
ActiveSupport's "blank" functionality is included here, and I copy "`extract_options!`" and
"`symbolize_keys`" from there too but I add nothing else. Although if you include
ActiveSupport yourself the `label` helper will take advantage of the `titleize` method.


## Install & Usage

Install:

    sudo gem install nice-n-easy --source http://gemcutter.org

Add this to your Sinatra app:

    require 'sinatra/nice_easy_helpers'
    
    class Main < Sinatra::Base
      helpers Sinatra::NiceEasyHelpers
    end

See the RDocs for how to use the individual helpers


## Note on Patches/Pull Requests
 
* Fork the project.
* Make your feature addition or bug fix.
* Add tests for it. This is important so I don't break it in a
  future version unintentionally.<commit_msg>Add link to RDocs.<commit_after># Nice 'n' Easy

> "Lets take it nice and easy  
> Its gonna be so easy  
> ...  
> cause nice and easy does it every time"

A set of Sinatra HTML view helpers to make your life nicer and easier.
It includes helpers for form fields, links, and assets.

In designing the library I tried to limit my use of external libs as much as possible.
In particular, I found a number of similar Sinatra HTML helpers but a number included all of
ActiveSupport.
ActiveSupport's "blank" functionality is included here, and I copy "`extract_options!`" and
"`symbolize_keys`" from there too but I add nothing else. Although if you include
ActiveSupport yourself the `label` helper will take advantage of the `titleize` method.


## Install & Usage

Install:

    sudo gem install nice-n-easy --source http://gemcutter.org

Add this to your Sinatra app:

    require 'sinatra/nice_easy_helpers'
    
    class Main < Sinatra::Base
      helpers Sinatra::NiceEasyHelpers
    end

See the [RDocs](http://brianjlandau.github.com/nice-n-easy/) for how to use the individual helpers


## Note on Patches/Pull Requests
 
* Fork the project.
* Make your feature addition or bug fix.
* Add tests for it. This is important so I don't break it in a
  future version unintentionally.
{'fraction_non_alphanumeric': 0.06349206349206349, 'fraction_numerical': 0.0, 'mean_word_length': 3.6771799628942485, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, 'https://': 0, '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': '5842423', 'n_tokens_mistral': 736, 'n_tokens_neox': 704, 'n_words': 366}