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
20
vendor/plugins/erubis/test/data/users-guide/example_perl.result
vendored
Normal file
20
vendor/plugins/erubis/test/data/users-guide/example_perl.result
vendored
Normal file
|
@ -0,0 +1,20 @@
|
|||
$ erubis -l perl example.eperl
|
||||
use HTML::Entities;
|
||||
my $user = 'Erubis';
|
||||
my @list = ('<aaa>', 'b&b', '"ccc"');
|
||||
|
||||
print('<html>
|
||||
<body>
|
||||
<p>Hello '); print($user); print('!</p>
|
||||
<table>
|
||||
'); $i = 0;
|
||||
for $item (@list) {
|
||||
print(' <tr bgcolor='); print(++$i % 2 == 0 ? '#FFCCCC' : '#CCCCFF'); print('">
|
||||
<td>'); print($i); print('</td>
|
||||
<td>'); print($item); print('</td>
|
||||
</tr>
|
||||
'); }
|
||||
print(' </table>
|
||||
</body>
|
||||
</html>
|
||||
');
|
Loading…
Add table
Add a link
Reference in a new issue