public
Description: Easy website wireframing with HAML, SASS, Red, Compass, jQuery and Polypage.
Homepage:
Clone URL: git://github.com/nmerouze/newyork.git
newyork / README.textile
100644 76 lines (49 sloc) 1.874 kb

New York

Easy website wireframing with HAML, SASS, Compass, Red, jQuery and Polypage.

Download

http://boldr.fr/downloads/newyork/newyork-1.0.2.zip

Run

The bundled version includes JRuby, so you don’t need to have Ruby installed on your system. To launch New York type the following command:

java -jar lib/jruby-complete.jar main.rb

Note: Red doesn’t work with JRuby. If you want to use it, please read “Installation from sources” section.

Installation from sources

First install the required gems:

sudo gem install mongrel sinatra extlib red
git clone git://github.com/nex3/haml.git
cd compass
rake install
git clone git://github.com/chriseppstein/compass.git
cd compass
rake install

Then:

git clone git://github.com/nmerouze/newyork.git
cd newyork
ruby main.rb

What’s included?

And after?

Just add your HAML files in views/, your SASS files in sass/, your Red files in red/ and all your static files in public/.

To access to your pages type the following URL: http://localhost:4567/mypage

Use ERB

In main.rb, change this:

get '/' do
  haml :index
end

get '/:name' do
  haml params[:name].to_sym
end

Into this:

get '/' do
  erb :index
end

get '/:name' do
  erb params[:name].to_sym
end

License and support

© 2008 Nicolas Mérouze, under an MIT license. http://www.opensource.org/licenses/mit-license.php

Please leave any bugs or feedback at nicolas.merouze [at] gmail [dot] com