Expand documentation in werc website.
This commit is contained in:
parent
272c9901d0
commit
3f8988a1f8
2 changed files with 74 additions and 2 deletions
|
|
@ -1,5 +1,5 @@
|
|||
Rc template language
|
||||
====================
|
||||
The Rc Template Language
|
||||
========================
|
||||
|
||||
Implemented by Kris, thanks!
|
||||
|
||||
|
|
@ -10,3 +10,32 @@ Basic syntax:
|
|||
* To 'inline' the value of an environment variable use `%($my_var%)`
|
||||
|
||||
That is basically it!
|
||||
|
||||
|
||||
Examples
|
||||
--------
|
||||
|
||||
Loops
|
||||
|
||||
<ul>
|
||||
% for(i in a b c) {
|
||||
% echo '<li>'$i'</li>'
|
||||
% }
|
||||
</uL>
|
||||
|
||||
Is equivalent to:
|
||||
|
||||
<ul>
|
||||
% for(i in a b c) {
|
||||
<li>%($i%)</li>
|
||||
% }
|
||||
</uL>
|
||||
|
||||
and results in this output:
|
||||
|
||||
<ul>
|
||||
<li>a</li>
|
||||
<li>b</li>
|
||||
<li>c</li>
|
||||
</ul>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue