On Mar 7, 10:04 am, Nathan Weizenbaum <[EMAIL PROTECTED]> wrote: > Partials are compiled before being included in their super-template, so > it wouldn't be possible to guess tags across them.
I think partials really make the whole (really interesting) idea unworkable, even if you could send context to them. For example, you could do: (foo.haml): %ul = render :partial => "bar" = render :partial => "bar" (bar.haml) .bar What kind of element am I? What should happen here? It looks like maybe the code should generate <li class="bar"> and <div class="bar"> -- that would be... surprising... to me, as a developer. Right now with haml, I *know* what's gonna happen when I write '.bar'. -Nate --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
