[Radiant] Re: if/else statements in radiant tags

Arik Jones makingme at gmail.com
Thu May 1 20:16:55 CDT 2008


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 Parrish wrote:
> 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

-- 
Posted via http://www.ruby-forum.com/.


More information about the Radiant mailing list