This is interesting, but it seems like it's working at the wrong level  
of abstraction. The DRYML parser is really only working with strings,  
whereas you're really looking to manipulate hashlike data structures.  
The hardcore CS folks would describe the goal as transforming one AST  
(the results of parsing DRYML) into another AST (the results of  
interpreting the JS code).

It may even be valuable for you to construct real objects that  
represent the various ExtJS parts rather than just hashes, but that's  
starting to add some real complication.

--Matt Jones

On Sep 12, 2009, at 8:04 PM, Kristian wrote:

>
> I have now also succeeded in creating DRYML extensions that allow for
> automatic wrapper-strings to wrap child elements depending on number
> encountered...
>
> <def tag="me" join="," wrap-single="{::::}" wrap-multi="[::::]">
>  <you/>
>  <you/>
> </def>
>
> <def tag="him" wrap-single="{::::}">
>  <you/>
> </def>
>
> <def tag="you">
>  you
> </def>
>
> ---
>
> <me/> renders as: [you, you]
> <him/> renders as: {you}
>
> --
>
> Should I submit a patch for these enhancements?
>
> -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