PATCH: Add the possibility to configure options that are passed to Haml::Engine when evalutating HAML template.
Reported by Simon Rozet | April 19th, 2008 @ 01:03 PM | in 0.3.0 Sammy
I am quoting myself from the commit log :
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.
Comments and changes to this ticket
-

Simon Rozet April 19th, 2008 @ 01:04 PM
Err sorry, textile blew my message. (I which there where a preview button...)
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.
-

Simon Rozet April 19th, 2008 @ 01:06 PM
Err, what a morron I am. My fork is located at http://github.com/sr/sinatra/com...
Sorry for the unnecessary noise.
-
Blake Mizerany April 19th, 2008 @ 02:04 PM
- → State changed from new to open
-
Please Login or create a free account to add a new comment.
You can update this ticket by sending an email to from your email client. (help)
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
