On Oct 13, 2:44 am, Tom Locke <[EMAIL PROTECTED]> wrote: > - When extending, you should give the 'merge' attribute, not 'merge- > attrs', so that any parameters passed to your new tag are forwarded to > <page>
Hrmmm. Now that we talk about it, I guess the difference between the two isn't entirely clear to me. When you have a moment, could you explain a bit more about when to use merge and when to use merge-attrs? > - As you're not calling <old-page>, you are not extending <show- > page>, you are really redefining it. So it would be better to just do > <def tag="show-page" polymorphic> D'oh! What does Hobo use to parse the DRYML DSL? Would it be possible to leverage the existing parser to write a simple validator tool that points out mistakes like that? > I would create the show.dryml file. That's the place people expect to > look for the custom page. > > In general I would say you should only define a tag if either: > > - It will be called from more than one place, or > > - Some other page or tag is getting too big and you want to break > part of it out to improve clarity Excellent advice. Especially since it matches what I was thinking... :) -VegHead --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Hobo Users" 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/hobousers?hl=en -~----------~----~----~----~------~----~------~--~---
