On Fri, Feb 13, 2009 at 10:11 AM, Andrew Shindyapin
<[email protected]> wrote:
> I wasn't sure why I couldn't replace this line: <a action="new"
> to="&model"/> with this: <new-link:/>. According to the nested params
> section of the DryML guide, I need to omit the colon to make the line like
> this: <new-link />, since I'm calling a tag, not customizing an existing
> call. However, this produces the following error:
True, getting rid of the colon turns the parameter into a tag call.
But, to call a tag, it must be defined first.
Sometimes Rapid defines tags with the same name as common parameters
(<collection/>) and sometimes it doesn't (as you found with
<new-link>). It just depends on the context.
You could certainly define the tag yourself. In application.dryml:
<def tag="new-link">
<a action="new" to="&model"/>
</def>
And parameterize it however best works for you.
> Oh well, it's not a big deal to have <a action="new" to="&model"/> instead
> of <new-link:> in the big scheme of things :~).
Yes it is!! Yes it is! You gotta keep things DRY. :)
- Scott
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---