Seems like this should (but not necessarily be easy to do) work for
param-content otherwise there's no way of removing wrapping tags
without repeating yourself

On Jun 30, 4:11 pm, Matt Jones <[email protected]> wrote:
> On Wed, Jun 30, 2010 at 4:35 PM, kevinpfromnm <[email protected]> wrote:
> > Situation, I want to strip off a bunch of wrapping code from around
> > the main content param block.
>
> > <page>
> >  <body:>
> >    <content-wrap:>
> >      <content:>
> >        <content-header: />
> >        <content-body: />
> > Just to give an hopefully clearer idea of what I'm trying to do.  I
> > want the content of content: to replace entirely the content of
> > content-wrap:
>
> > <param-content for="content" /> will work inside a <content: replace>
> > but will not if using it inside any other parameter.
>
> > Question: is there a way to do this without pulling the code from
> > pages.dryml and sticking it in the parameter I'm trying to redo?
>
> This doesn't work, but it's close.
>
> <def tag="page-without-wrapping">
>   <page merge>
>     <content-wrap: replace>
>       <%= parameters.content[1][:default].call %>
>     </content-wrap:>
>   </page>
> </def>
>
> *However* this smells like extra-bad undocumented internal muckery -
> Tom, Bryan is there a cleaner way to do this? I assumed that
> parameters.content would work pretty much like parameters.default,
> which is definitely NOT the case. Even this example gives a Ruby
> warning:
>
> Warning: multiple values for a block parameter (0 for 1)
>
> Which can't possibly be a good sign.
>
> --Matt Jones

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