I don't think he's trying to override it in the show.dryml.  And I
think there's an error if you try to add a condition to a parameter
call like that, but I haven't checked in awhile and may not even be an
issue in hobo 1.3.  Given he wants the code wrapped in another div
doesn't seem like a major problem though.  In fact, now that I think
about it, I'm almost certain you can't add a condition on a parameter
and content to it at the same time.

On Nov 11, 10:13 am, Bryan Larsen <[email protected]> wrote:
> There are two problems here:
>
> 1) you can't use extend-tag on view pages, just on included files.
> Until we fix that limitation you can workaround it by putting the extend
> in an adjacent file, and including that from show.dryml.
>
> 2) you'll get the "mixed content and parameter tags" error.   That can
> be worked around with the other form of if
>
> <append-content: if="@current_user.admin?">
>
> I think that'll work, I haven't tried it.
>
> the other option is to make use of the "replace/restore"
> pseudo-parameters:http://cookbook.hobocentral.net/manual/dryml-guide#wrapping_content
>
> Bryan

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

Reply via email to