A Rack application for serving static sites with ERB templates.
Sample application structure:
templates/ help/ index.html.erb index.html.erb shared/ _header.html.erb _footer.html.erb signup.html.erb config.ru public/ ...
require "brochure" run Brochure.app(File.dirname(__FILE__))
URLs are automatically mapped to template names. So
/ will render
/signup will render
/help/ will render
templates/help/index.html.erb, and so on.
Templates can render partials. Partials are denoted by a leading
underscore in their filename. So
<%= render "shared/header" %> will
$ gem install brochure
Copyright (c) 2010 Sam Stephenson and Josh Peek.
Released under the MIT license. See
LICENSE for details.