OK, I simplified quite a bit and have now gone for a moe data driven
approach

    <collection:>
      <panel title="&this.title">
        items: [
          <panel title="Inner panel 1" with="200"/>,
          <panel title="Inner panel 2" with="400"/>
        ]
      </panel>
    </collection>

<def tag="panel" attrs="title">
  {
    xtype : 'panel',
    title : <%= title %>
    <% if parameters.default  %>
    ,<do param="default"/>
    <% end %>
  }
</def>

Which gives me this:

 { xtype : 'panel', title : Abe , items: [ { xtype : 'panel', title :
Inner panel 1 , } , { xtype : 'panel', title : Inner panel 2 , } ] }

{ xtype : 'panel', title : Pancake , items: [ { xtype : 'panel',
title : Inner panel 1 , } , { xtype : 'panel', title : Inner panel
2 , } ] }

Almost what I want, except I want commas between each panel output,
similar to <repeat join=",">

AND how do I avoid rendering the final comma inside each panel in the
cases where there is no body (param.default) ???

- Kris


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