Partials are compiled before being included in their super-template, so it wouldn't be possible to guess tags across them.
Irfan Adilovic wrote: > I like the "implicitly-implicit" idea more (no guess syntax), because > of a simple reason: one can always force a div by saying > %div#id.class, so writing #id or .class feels natural enough to be the > way of the guessing syntax. In other words - since we'd use implicit > tag guessing most of the time - there is no reason to reserve the #id > or .class syntax for divs any more. If special guessing syntax is > introduced, my preference would be > ? > * > $ > > I like the concept by itself too, but I'd probably like to either see > it off by default in core or as a separate magic-haml plugin (that > would modify the existing Haml behavior when installed) as Hampton > suggested (I hope he meant that). > > The partials... Does the haml in partials normally get compiled and > cached before inclusion into other templates? If that is so, this > magic wouldn't help in generating the correct contextual tag as the > context is non-existent. > > If the compilation happens after inclusion, then the magic would > rather aid the programmer, as Chris Boone pointed out. > > -- Irfy > > 2008/3/7, Chris Boone <[EMAIL PROTECTED]>: > >> On Thu, Mar 6, 2008 at 2:48 PM, Mislav Marohnić >> <[EMAIL PROTECTED]> wrote: >> > >> > So how does the community feel about the "guess" syntax (middle of this >> > email)? It has more chance of becoming core. >> >> >> Fine by me. >> >> >> -- >> Chris Boone, Hypsometry >> http://hypsometry.com/ >> >> > >> >> > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
