This approach:

> <if>
>  first if true
> <elsif condition />
>  first elsif true
> <elsif condition />
>  first elsif false, second true
> <elsif condition />
>  etc.
> </if>
> <else>...

Is cleaner, but the structure is really kinda weird, especially with  
the </if><else> at the end.

OTOH, this:

> <if test="&this.complete?">
>    <view ...>
> </if><elsif test="&this.confirmed?">
>   <show ...>
> </elsif><elsif test="&this.pending?">
>   <other...>
> </elsif><elsif test="&this.active?">
>   <stuff ...>
> </elsif><else>
>   Unknown
> </else>

has so much line-noise that it seems hardly worth it.

TBH the erb version is by far the nicest in my opinion. I think that's  
the pragmatic solution.

Tom


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