If/else statements in radiant tags

Will Radius ever support if/else statements?

Arik J. 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

Speaking of code, the radiant admin page textareas could use some sort
of tab-enabled feature so I can indent my heavily-dynamic (tons of
indented code) pages. I’ve implemented this with decent results in every
browser except the most recent betas of Firefox 3.

Chris P. wrote:

Arik J. 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

On May 1, 2008, at 9:16 PM, Arik J. wrote:

Speaking of code, the radiant admin page textareas could use some sort
of tab-enabled feature so I can indent my heavily-dynamic (tons of
indented code) pages. I’ve implemented this with decent results in
every
browser except the most recent betas of Firefox 3.

That sounds very interesting. Finish it off and send us a patch.


John L.
http://wiseheartdesign.com