D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
td-agent
/
embedded
/
lib
/
ruby
/
gems
/
2.1.0
/
gems
/
erubis-2.7.0
/
examples
/
pi
/
Filename :
example.escheme
back
Copy
<?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 ?>