1
0
Fork 0
mirror of https://github.com/sinatra/sinatra synced 2023-03-27 23:18:01 -04:00
sinatra/test
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
..
public tests 2007-12-02 15:41:58 -08:00
views Added sass_test.rb and supporting template/layout files. 2008-04-08 19:51:20 -05:00
app_test.rb using new RESTful testing 2008-04-15 19:42:46 -07:00
application_test.rb Deal correctly with paths that contain spaces 2008-04-11 13:56:59 -07:00
builder_test.rb Builder Rendering Helper (.builder templates) w/ doco and tests. 2008-03-12 09:04:05 -04:00
custom_error_test.rb raise errors from error 2008-04-01 14:20:26 -07:00
diddy_test.rb filter on host 2008-04-01 18:20:52 -07:00
erb_test.rb Haml & Erb redo 2008-02-27 21:07:06 -08:00
event_context_test.rb throw :halt 2007-11-28 02:55:19 -08:00
events_test.rb bringing back the string. 2008-03-31 18:48:59 -07:00
haml_test.rb Add the possibility to configure options that are passed to Haml::Engine when evalutating HAML template. 2008-04-19 16:43:12 +02:00
helper.rb throw :halt 2007-11-28 02:55:19 -08:00
mapped_error_test.rb raise errors from error 2008-04-01 14:20:26 -07:00
rest_test.rb RESTful testing 2008-04-09 22:50:56 -07:00
sass_test.rb Added sass_test.rb and supporting template/layout files. 2008-04-08 19:51:20 -05:00
sessions_test.rb err. 2008-04-11 14:09:23 -07:00
streaming_test.rb Make Static omit Content-Disposition header when serving files. 2008-03-26 15:51:13 -04:00
sym_params_test.rb Symbol params back in thanks to Jeremy Evans 2008-04-08 16:40:46 -07:00
template_test.rb ERB in place 2008-02-20 22:57:05 -08:00
use_in_file_templates_test.rb tests for use_in_file_templates! and a little refactoring 2008-03-28 14:33:26 -07:00