On Dec 3, 2009, at 9:21 PM, Owen wrote:

> ...however, I hope we get to the point that the 100 top "simple"
> things can be as easy as:
>
> <preview-with-more>
>   <model:Recipe/>
>   <count:10/>
> </preview-with-more>
>
> ..which will use the default cards, etc.
>

Not to burst your bubble or anything, but I don't see a syntax like  
this in the future; embedding Ruby in attributes is way more powerful  
and concise. The above in current Hobo would be:

<preview-with-more with="&Recipe.recent(10)" />

Besides, the XML-ish example above would clash nastily with the  
current use of the colon, so you'd end up with a syntax more like:

<preview-with-more>
   <model:>Recipe</model:>
   <count:>10</count:>
</preview-with-more>

I think that's even possible with the current syntax. On the other  
hand, if I wanted to write that much XML I'd go get a Java cert and do  
that instead... :)

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