Update Vendored Erubis to 2.6.6
This commit is contained in:
parent
c18c2f988d
commit
39c2138f88
300 changed files with 207 additions and 171 deletions
26
vendor/plugins/erubis/examples/pi/example.escheme
vendored
Normal file
26
vendor/plugins/erubis/examples/pi/example.escheme
vendored
Normal file
|
@ -0,0 +1,26 @@
|
|||
<?scheme
|
||||
(let ((user "Erubis")
|
||||
(items '("<aaa>" "b&b" "\"ccc\""))
|
||||
(i 0))
|
||||
?>
|
||||
<p>Hello @!{user}@!</p>
|
||||
<table>
|
||||
<tbody>
|
||||
<?scheme
|
||||
(for-each
|
||||
(lambda (item)
|
||||
(set! i (+ i 1))
|
||||
?>
|
||||
<tr bgcolor="@!{(if (= (modulo i 2) 0) "#FFCCCC" "#CCCCFF")}@">
|
||||
<td>@!{i}@</td>
|
||||
<td>@!{item}@</td>
|
||||
</tr>
|
||||
<?scheme
|
||||
) ; lambda end
|
||||
items) ; for-each end
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
<?scheme
|
||||
) ; let end
|
||||
?>
|
Loading…
Add table
Add a link
Reference in a new issue