The Rc Template Language

Implemented by Kris, thanks!

Basic syntax:

That is basically it!

For further documentation on rc see:

Examples

Loops

<ul>
% for(i in a b c) {
%   echo '<li>'$i'</li>'
% }
</uL>

Can also be writen as:

<ul>
%{
for(i in a b c) {
   echo '<li>'$i'</li>'
}
%}
</uL>

and is equivalent to:

<ul>
% for(i in a b c) {
<li>%($i%)</li>
% }
</uL>

All three code examples result in this output:

<ul>
<li>a</li>
<li>b</li>
<li>c</li>
</ul>

To post a comment you need to login first.