So I have this page, with a bunch of stuff on it. This page has more
stuff on it if an admin views it, and some of the stuff is modified.
(Don't just immediately say admin subsite...)
The way I'm currently doing this is by having a bunch of conditions
riddled throughout the page. The way I would like to do it, is to
have a section below </show-page> that looks something like this:
<extend tag="show-page">
<old-show-page merge>
<if test="@current_user.admin?">
<my-div:>
do stuff
</my-div:>
<append-content:>
Do more stuff
end
Nice. DRY. Debuggable and clear. Supported?
The only way I can think of getting close is by throwing a bunch of
extend tag definitions inside of a condition in application.dryml. No!
--
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.