1
0
Fork 0
mirror of https://github.com/sinatra/sinatra synced 2023-03-27 23:18:01 -04:00
Commit graph

7 commits

Author SHA1 Message Date
Ryan Tomayko
60d50062d7 Fix whitespace errors across all source files and tests
I can't stand this shit anymore.
2008-08-31 02:10:37 -07:00
Simon Rozet
23999054c6 Add the possibility to configure options that are passed to Haml::Engine when evalutating HAML template.
Options can be configured in two different ways:

* Application-wide, using set_option :haml
  e.g.: set_option :haml, :format      => :haml4,
                          :escape_html => true

* By passing options directly to the `haml` helper
  e.g.: haml '%strong Hello World', :options => {:format => :html4}

Note that if you use both way, options will be merged.
2008-04-19 16:43:12 +02:00
Blake Mizerany
6bda16b9c1 added template to DSL 2008-03-26 23:53:31 -07:00
Blake Mizerany
898b36eab4 allow user to prevent layout render 2008-03-15 17:20:37 -07:00
Blake Mizerany
ccbb070300 FIX: Render without layout 2008-02-28 00:49:09 -08:00
Blake Mizerany
7d5bc1f0da Haml & Erb redo 2008-02-27 21:07:06 -08:00
Blake Mizerany
520ac2e918 Haml 2008-02-24 01:32:52 -08:00