Hi,

My esteemed colleague Jeff Hardy has pointed out that the local
variable _haml_local_assigns inside a Haml template contains the same
information as the local_assigns hash local variable that is available
in an erb template. This seems like an inconsistency with the template
interface that Rails developers expect to have, as the
ActionView::Base documentation refers to the local_assigns hash
explicitly.

Thoughts anyone?

Mike

On Jul 22, 7:09 pm, Mike  Ferrier <[EMAIL PROTECTED]> wrote:
> I was trying to figure out why I had no local_assigns hash to look at
> from within a Haml partial rendered with a :locals hash; I renamed it
> to .rhtml and ran it again and local_assigns had magically appeared.
>
> Anyone ran into this before? Is there any way to get at the
> local_assigns hash from inside a Haml template?


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