[Radiant] [ANN] BackDoor 0.3.0

Aitor Garay-Romero me at aitor.name
Sat Oct 13 08:25:48 CDT 2007


Hi!,

    New release with useful new features.  More info in
http://backdoor.rubyforge.org/ .

    From the changelog:

=== 0.3.0
* Implemented a <r:else> tag for both <r:if> and <r:unless> tags.  Now
it's possible to do:

  	<r:if cond="...">
  		This is the if part
		<r:else>
			And this the else part
		</r:else>
	</r:if>

* Implemented a <r:tag> and <r:erb_tag> tags which allow to define new
tags easily:

	<!-- define a new tag -->
	<r:erb_tag name="article">
		<div class="<%= tag.attr[ "class"] || "article" %>">
			<div class="article-title"> <%= tag.attr[ "title"] %> </div>
			<div class="article-body"> <%= tag.expand %> </div>
			<div class="article-footer"> Posted in <page/> </div>
		</div>
	</r:erb>

	<!-- use it -->
	<article title="New BackDoor release">
		Blah, blah, blah
	</article>

* Added a <r:erb:expand> tag that solves a problem where tags inside
ERB templates expand only once when used inside ruby loops

     /AITOR



More information about the Radiant mailing list