9 lines
172 B
Text
9 lines
172 B
Text
$ erubis -x example1.eruby
|
|
_buf = ''; _buf << '<ul>
|
|
'; for item in list
|
|
_buf << ' <li>'; _buf << ( item ).to_s; _buf << '</li>
|
|
'; end
|
|
|
|
_buf << '</ul>
|
|
';
|
|
_buf.to_s
|