├── .gitignore ├── Gemfile ├── LICENSE ├── README.md ├── Rakefile ├── brochure.gemspec ├── config.ru.example ├── lib ├── brochure.rb └── brochure │ ├── application.rb │ ├── context.rb │ ├── errors.rb │ ├── failsafe.rb │ ├── static.rb │ └── template.rb └── test ├── fixtures ├── custom404 │ └── templates │ │ └── 404.html.erb └── default │ ├── helpers │ └── link_helper.rb │ ├── public │ └── screen.css │ ├── templates │ ├── _layout.html.erb │ ├── blog.html.erb │ ├── blog │ │ └── 2010.html.erb │ ├── doctype.html.haml │ ├── engineless.html │ ├── error.html.erb │ ├── haml_with_layout.html.haml │ ├── hello.html.str │ ├── hello.js.erb │ ├── help │ │ ├── index.html.erb │ │ ├── partial_error.html.erb │ │ └── search.html.erb │ ├── index.html.erb │ ├── shared │ │ └── _head.html.erb │ └── signup.html.erb │ └── vendor │ └── plugins │ └── common │ └── templates │ ├── common.html.erb │ └── shared │ └── _footer.html.erb └── test_brochure.rb /.gitignore: -------------------------------------------------------------------------------- 1 | Gemfile.lock 2 | -------------------------------------------------------------------------------- /Gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sstephenson/brochure/HEAD/Gemfile -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sstephenson/brochure/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sstephenson/brochure/HEAD/README.md -------------------------------------------------------------------------------- /Rakefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sstephenson/brochure/HEAD/Rakefile -------------------------------------------------------------------------------- /brochure.gemspec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sstephenson/brochure/HEAD/brochure.gemspec -------------------------------------------------------------------------------- /config.ru.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sstephenson/brochure/HEAD/config.ru.example -------------------------------------------------------------------------------- /lib/brochure.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sstephenson/brochure/HEAD/lib/brochure.rb -------------------------------------------------------------------------------- /lib/brochure/application.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sstephenson/brochure/HEAD/lib/brochure/application.rb -------------------------------------------------------------------------------- /lib/brochure/context.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sstephenson/brochure/HEAD/lib/brochure/context.rb -------------------------------------------------------------------------------- /lib/brochure/errors.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sstephenson/brochure/HEAD/lib/brochure/errors.rb -------------------------------------------------------------------------------- /lib/brochure/failsafe.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sstephenson/brochure/HEAD/lib/brochure/failsafe.rb -------------------------------------------------------------------------------- /lib/brochure/static.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sstephenson/brochure/HEAD/lib/brochure/static.rb -------------------------------------------------------------------------------- /lib/brochure/template.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sstephenson/brochure/HEAD/lib/brochure/template.rb -------------------------------------------------------------------------------- /test/fixtures/custom404/templates/404.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sstephenson/brochure/HEAD/test/fixtures/custom404/templates/404.html.erb -------------------------------------------------------------------------------- /test/fixtures/default/helpers/link_helper.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sstephenson/brochure/HEAD/test/fixtures/default/helpers/link_helper.rb -------------------------------------------------------------------------------- /test/fixtures/default/public/screen.css: -------------------------------------------------------------------------------- 1 | body { 2 | font-family: "Helvetica"; 3 | } 4 | -------------------------------------------------------------------------------- /test/fixtures/default/templates/_layout.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sstephenson/brochure/HEAD/test/fixtures/default/templates/_layout.html.erb -------------------------------------------------------------------------------- /test/fixtures/default/templates/blog.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sstephenson/brochure/HEAD/test/fixtures/default/templates/blog.html.erb -------------------------------------------------------------------------------- /test/fixtures/default/templates/blog/2010.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sstephenson/brochure/HEAD/test/fixtures/default/templates/blog/2010.html.erb -------------------------------------------------------------------------------- /test/fixtures/default/templates/doctype.html.haml: -------------------------------------------------------------------------------- 1 | !!! 2 | -------------------------------------------------------------------------------- /test/fixtures/default/templates/engineless.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sstephenson/brochure/HEAD/test/fixtures/default/templates/engineless.html -------------------------------------------------------------------------------- /test/fixtures/default/templates/error.html.erb: -------------------------------------------------------------------------------- 1 | <% raise "foo" %> 2 | -------------------------------------------------------------------------------- /test/fixtures/default/templates/haml_with_layout.html.haml: -------------------------------------------------------------------------------- 1 | - render "layout", :title => "Blog" do 2 | %h1 Latest 3 | = "foo" 4 | -------------------------------------------------------------------------------- /test/fixtures/default/templates/hello.html.str: -------------------------------------------------------------------------------- 1 |
Hello #{request.params["name"]}
2 | Home 3 | -------------------------------------------------------------------------------- /test/fixtures/default/templates/hello.js.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sstephenson/brochure/HEAD/test/fixtures/default/templates/hello.js.erb -------------------------------------------------------------------------------- /test/fixtures/default/templates/help/index.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sstephenson/brochure/HEAD/test/fixtures/default/templates/help/index.html.erb -------------------------------------------------------------------------------- /test/fixtures/default/templates/help/partial_error.html.erb: -------------------------------------------------------------------------------- 1 | <%= render "shared/missing" %> 2 | -------------------------------------------------------------------------------- /test/fixtures/default/templates/help/search.html.erb: -------------------------------------------------------------------------------- 1 |