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
38
vendor/plugins/erubis/test/data/users-guide/fasteruby.result
vendored
Normal file
38
vendor/plugins/erubis/test/data/users-guide/fasteruby.result
vendored
Normal file
|
@ -0,0 +1,38 @@
|
|||
$ ruby fasteruby.rb
|
||||
---------- script source ---
|
||||
_buf = ''; _buf << %Q`<html>
|
||||
<body>
|
||||
<h1>#{Erubis::XmlHelper.escape_xml( @title )}</h1>
|
||||
<table>\n`
|
||||
i = 0
|
||||
for item in @list
|
||||
i += 1
|
||||
_buf << %Q` <tr>
|
||||
<td>#{ i }</td>
|
||||
<td>#{Erubis::XmlHelper.escape_xml( item )}</td>
|
||||
</tr>\n`
|
||||
end
|
||||
_buf << %Q` </table>
|
||||
</body>
|
||||
</html>\n`
|
||||
_buf.to_s
|
||||
---------- result ----------
|
||||
<html>
|
||||
<body>
|
||||
<h1>Example</h1>
|
||||
<table>
|
||||
<tr>
|
||||
<td>1</td>
|
||||
<td>aaa</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>2</td>
|
||||
<td>bbb</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>3</td>
|
||||
<td>ccc</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue