I have found that when I render a partial with a value in the :locals
that is a boolean false, that it gets set to nil in the partial,
instead of preserving it as false as I would have expected, and as is
done when rendering an rhtml partial.

I wrote up a summary of this with some sample code at:
http://sleeplesscoding.blogspot.com/2008/11/bug-in-haml-partial-rendering.html

Has anyone else seen this problem? Is this by design or is it a bug,
or is there a supported workaround?

I have some old rhtml partials that I am converting to haml that rely
on knowing the difference between false and nil for a passed in local,
and hopefully I don't have to go through and change the way that code
works...

Thanks,
-scottwb

--~--~---------~--~----~------------~-------~--~----~
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