h1. Welcome to Rouge

bq. His code not functional or elegant.<br />What do Code Monkey think?<br />--
Jonathan Coulton,
"""Code Monkey""":http://www.jonathancoulton.com/songdetails/Code%20Monkey

Do Ruby's stylish core and standard libraries make your JavaScript green with
envy? Tart up that dowdy JavaScript -- put on some *Rouge*.

Rouge is a JavaScript implementation of some of the Ruby base classes and
modules.

h1. Usage

Rouge makes your JavaScript look and feel more like Ruby while preserving sound
JavaScript style.

Stop writing:

<pre><code>var array = ['a', 'b', 'c', 'd', 'e'];
for (var i = 0; i < array.length; i++) {
  alert(array[i]);
}</code></pre>

when instead you can write:

<pre><code>var array = ['a', 'b', 'c', 'd', 'e'];
array.each(function(s) {
  alert(s);
});</code></pre>

h1. Credits

Rouge's author is "Nils Jonsson":mailto:nils@alumni.rice.edu?subject=Your%20Rouge%20library.
Released under the "MIT License":master/MIT-LICENSE.

h1. Welcome to Rouge

bq. His code not functional or elegant.<br />What do Code Monkey think?<br />--
Jonathan Coulton,
""Code Monkey"":http://www.jonathancoulton.com/songdetails/Code%20Monkey

Do Ruby's stylish core and standard libraries make your JavaScript green with
envy? Tart up that dowdy JavaScript -- put on some *Rouge*.

Rouge is a JavaScript implementation of some of the Ruby base classes and
modules.

h1. Usage

Rouge makes your JavaScript look and feel more like Ruby while preserving sound
JavaScript style.

Stop writing:

<pre><code>var array = ['a', 'b', 'c', 'd', 'e'];
for (var i = 0; i < array.length; i++) {
  alert(array[i]);
}</code></pre>

when instead you can write:

<pre><code>var array = ['a', 'b', 'c', 'd', 'e'];
array.each(function(s) {
  alert(s);
});</code></pre>

h1. Credits

Rouge's author is "Nils Jonsson":mailto:nils@alumni.rice.edu?subject=Your%20Rouge%20library.
Released under the "MIT License":../raw/master/MIT-LICENSE.
