I've considered this, but it's not possible to communicate between the
layout and the partials in such a way to make this work. This is
particularly so because of how the layout/partial systems differ between
frameworks.

On Sat, Jul 18, 2009 at 10:40 AM, Chris Eppstein <[email protected]>wrote:

> Why not add a new declaration syntax?
> !!!5 or something, that can be used when not in html5 mode to place the
> engine into html5 mode for that template?
>
> What am I missing?
>
> chris
>
>
> On Sat, Jul 18, 2009 at 10:34 AM, Nathan Weizenbaum <[email protected]>wrote:
>
>> Haml processes options on a per-Engine basis, so yes, there is in theory a
>> way to do this. In practice, it's going to require some monkey-patching.
>> You'll need to dig around in the Rails template-handling mechanisms, as well
>> as in lib/haml/template/plugin.rb.
>>
>> If you can come up with a nice way to handle this, I'm sure both Rails and
>> Haml would appreciate a patch.
>>
>>
>> On Sat, Jul 18, 2009 at 2:24 AM, RobL <[email protected]> wrote:
>>
>>>
>>> Hi there,
>>>
>>> I'd like to test HTML5 with HAML but only on a single controller /
>>> namespace within my Rails app. Is there a way to only turn this on
>>> when you want it. I suppose I could use HAML in my namespace and erb
>>> outside as its only for testing on an existing site but it feels a bit
>>> dirty to use different templates languages in the same project.
>>>
>>> Cheers
>>>
>>> RobL
>>>
>>>
>>>
>>
>>
>>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Haml" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/haml?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to