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
16
vendor/plugins/erubis/examples/basic/example.ejs
vendored
Normal file
16
vendor/plugins/erubis/examples/basic/example.ejs
vendored
Normal file
|
@ -0,0 +1,16 @@
|
|||
<%
|
||||
var user = 'Erubis';
|
||||
var list = ['<aaa>', 'b&b', '"ccc"'];
|
||||
%>
|
||||
<p>Hello <%= user %>!</p>
|
||||
<table>
|
||||
<tbody>
|
||||
<% var i; %>
|
||||
<% for (i = 0; i < list.length; i++) { %>
|
||||
<tr bgcolor="<%= i % 2 == 0 ? '#FFCCCC' : '#CCCCFF' %>">
|
||||
<td><%= i + 1 %></td>
|
||||
<td><%= list[i] %></td>
|
||||
</tr>
|
||||
<% } %>
|
||||
</tbody>
|
||||
</table>
|
Loading…
Add table
Add a link
Reference in a new issue