public
Description: Easy website wireframing with HAML, SASS, Red, Compass, jQuery and Polypage.
Homepage:
Clone URL: git://github.com/nmerouze/newyork.git
name age message
file .gitignore Wed Nov 26 08:21:41 -0800 2008 Using JRuby 1.1.6 (trunk). [nmerouze]
file LICENSE Sun Nov 09 07:29:23 -0800 2008 Add license. [nmerouze]
file README.textile Wed Nov 26 08:23:58 -0800 2008 Update README. [nmerouze]
file main.rb Wed Nov 26 08:21:41 -0800 2008 Using JRuby 1.1.6 (trunk). [nmerouze]
directory public/ Sun Nov 09 06:58:52 -0800 2008 Fix bugs. Add Red support (doesn't work with JR... [nmerouze]
directory red/ Sun Nov 09 06:58:52 -0800 2008 Fix bugs. Add Red support (doesn't work with JR... [nmerouze]
directory sass/ Fri Nov 07 06:01:55 -0800 2008 Initial import. [nmerouze]
directory views/ Sun Nov 09 06:58:52 -0800 2008 Fix bugs. Add Red support (doesn't work with JR... [nmerouze]
README.textile

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