Group list elements in an unordered list by the first word in the phrase.
JavaScript Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
public
views
README.markdown
manip.rb

README.markdown

ABOUT

This example tasks a list of operating systems and groups them by their OS type.

INSTALLATION

via Github

git clone git://github.com/mhawkins/jquery-text-manip.git

REQUIREMENTS

Ruby and the following Rubygems:

  • sinatra
  • haml

RUNNING THE CODE

From your console

cd PATH_TO_APP

ruby manip.rb

Now in your browser, go to

http://0.0.0.0:4567

You'll see two lists. The input and its formatted output. Click on the h3 elements to expand the list.