I have now gone for a more data driven design, which seems easier and
more the DRYML way...

    <collection:>
      <panel>
        items:<js-wrapper convert>
          <hash-param key="name"><view:title/></hash-param>
          <hash-param key="width">200</hash-param>
        </js-wrapper>
      </panel>
    </collection>

If I have a given model, this would generate a list of panels, where
each panel is of the form

    { xtype : 'panel', items: [{name : 'Abc}, {width : 200}] }
    { xtype : 'panel', items: [{name : 'Pancake'}, {width : 200}] }
    { xtype : 'panel', items: [{name : 'Omelette'}, {width : 200}] }

But it should be like:

    { xtype : 'panel', items: [name : 'Abc, width : 200] }
,
    { xtype : 'panel', items: [name : 'Pancake', width : 200] }
,
    { xtype : 'panel', items: [name : 'Omelette', width : 200] }


    <collection:>
      <panel>
        items:
      <js-wrapper convert>
          <array-param key="name">abc</array-param>
          <array-param key="width">200</array-param>
      </js-wrapper>
      </panel>
    </collection>

However results in this:
    { xtype : 'panel', items: }
    { xtype : 'panel', items: }
    { xtype : 'panel', items: }


How do I "wrap" the above into a nice reusable tag, more like?

 <collection:>
    <ext-panel width="200"/>
 </collection>

Also, I would prefer if I could join the panel outputs with a ",", but
it seems only <repeat> supports a join?

OK guys, ... I'm about to give up here. Maybe someone in the core team
could provide some better ways for using DRYML for other purposes than
creating HTML output ;)

- 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