Brochure
========

A Rack application for serving static sites with ERB templates.

Sample application structure:

    app/
      helpers/
        analytics_helper.rb
        formatting_helper.rb
      templates/
        help/
          index.html.erb
        index.html.erb
        shared/
          _header.html.erb
          _footer.html.erb
        signup.html.erb
    config.ru
    public/
      ...

Sample `config.ru`:

    require "brochure"
    run Brochure::Application.new(File.dirname(__FILE__))

Helpers should define a module that maps to their filename. So
`analytics_helper.rb` defines `AnalyticsHelper`,
`html/forms_helper.rb` defines `Html::FormsHelper`, and so on.

# Installation

    $ gem install brochure

Requires [Tilt](http://github.com/rtomayko/tilt).

# License

Copyright (c) 2010 Sam Stephenson.

Released under the MIT license. See `LICENSE` for details.

Brochure
========

A Rack application for serving static sites with ERB templates.

Sample application structure:

    app/
      helpers/
        analytics_helper.rb
        formatting_helper.rb
      templates/
        help/
          index.html.erb
        index.html.erb
        shared/
          _header.html.erb
          _footer.html.erb
        signup.html.erb
    config.ru
    public/
      ...

Sample `config.ru`:

    require "brochure"
    run Brochure::Application.new(File.dirname(__FILE__))

URLs are automatically mapped to template names. So `/` will render
`app/templates/index.html.erb`, `/signup` will render
`app/templates/signup.html.erb`, `/help/` will render
`app/templates/help/index.html.erb`, and so on.

Helpers should define a module that maps to their filename. So
`analytics_helper.rb` defines `AnalyticsHelper`,
`html/forms_helper.rb` defines `Html::FormsHelper`, and so on.

# Installation

    $ gem install brochure

Requires [Tilt](http://github.com/rtomayko/tilt).

# License

Copyright (c) 2010 Sam Stephenson.

Released under the MIT license. See `LICENSE` for details.

Add a note about URL mapping
Add a note about URL mapping
