Thanks Sean.  I really hope the tone of my original email was not negative or
condescending.  The unless/if works for me, just wondering if there was a
better way to do it.

The day I'm able to confidently submit a patch will be a good day.  I need to
learn much more Ruby.


Quoting Sean Cribbs <[EMAIL PROTECTED]>:

> Right now, the last way you mentioned is the only way I know of.  However,
> if you have some better tag designs (with patch preferably), they would be
> welcomed!
> 
> Sean
> 
> On 1/25/07, Todd McGrath <[EMAIL PROTECTED]> wrote:
> >
> > In the default radius tags, is there a way to replicate if-then-else flow?
> >
> > Something like:
> > <r:if_content part="testy">
> > x
> > <r:else/>
> > y
> > </r:if_content>
> >
> > or
> >
> > <r:choose>
> > <r:when part="testy">
> > x
> > </r:when>
> > <r:otherwise>
> > y
> > </r:otherwise>
> > </r:choose>
> >
> > Or, is the idea to use an "r:unless_*" with an r:if_* tag:
> >
> >     <r:unless_content part="specs">
> >      <li class="X">x</li>
> >     </r:unless_content>
> >     <r:if_content part="specs">
> >      <li class="Y">y</li>
> >     </r:if_content>
> >
> > -Todd
> >
> > _______________________________________________
> > Radiant mailing list
> > Post:   [email protected]
> > Search: http://radiantcms.org/mailing-list/search/
> > Site:   http://lists.radiantcms.org/mailman/listinfo/radiant
> >
> 


_______________________________________________
Radiant mailing list
Post:   [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

Reply via email to