Here is a small demo of my approach ;)

        <items>
          <bag>
            <jar>
              <liquid title="water"/>
            </jar>
            <jar>
              <liquid title="juice"/>
            </jar>
          </bag>
        </items>

---
{ items : { bag : { jar : { liquid : water } jar : { liquid :
juice } } } }

--
But should be:

{ items : { bag : [ jar : { liquid : water } ,  jar : { liquid :
juice } ] } }

So

  bag : {
    <do param="default" />
  }

Is naturally interpreted as a single element (when compiling!) and
thus a single-element wrapper is generated without a comma :(

How do I translate this into compile time logic? Could you recreate
this example using your set-scoped logic?

---
<def tag="items" join="," wrap-single="{::::}" wrap-multi="[::::]">
  items : <do param="default" />
</def>

<def tag="jar" join=",">
  jar : {<do param="default" />}
</def>

<def tag="liquid" join="," attrs="title" >
  liquid : <%= title %>
</def>

<def tag="bag" wrap-single="{::::}" wrap-multi="[::::]">
  bag : {
    <do param="default" />
  }
</def>

--

Thanks!

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