[Radiant] if/else statements in radiant tags
Chris Parrish
chris.parrish-forummail at swankinnovations.com
Wed Apr 30 00:26:58 CDT 2008
Arik Jones wrote:
> Will Radius ever support if/else statements?
>
I'd love to hear John and Sean's latest thoughts on this. I've often
felt that this was one of the main weak areas of Radius (and why there
are now several <r:if_misc_stuff> tags to fill the void).
In the meantime, I have an extension that I developed to test this
functionality (actually both conditionals and variable declarations).
John has encouraged me to put it out there for more people to
try/critique but I wanted to split the two functionalities up first (it
was just a proof of concept for me).
Anyway, it is pretty usable (though it could use some lovin). You can
get it here:
https://secure.svnrepository.com/s_swanki/open/radiant/extensions/vars_if/trunk/
Also, there is the Backdoor extension which basically opens up ERB into
your tags so you can use all of ruby's goodness within your tags. It
also addresses the need for <r:if> tagging.
-Chris
More information about the Radiant
mailing list