Sha256: 032c6b98ca05586931049588d4f48bcf58c81e8231e94f1636f65ff53e6b1f48

Contents?: true

Size: 416 Bytes

Versions: 214

Compression:

Stored size: 416 Bytes

Contents

<html>
 <body>
<%
(let ((user "Erubis")
      (items '("<aaa>" "b&b" "\"ccc\""))
      (i 0))
 %>
  <p>Hello <%= user %>!</p>
  <table>
<%
  (for-each
   (lambda (item)
     (set! i (+ i 1))
 %>
   <tr bgcolor="<%= (if (= (modulo i 2) 0) "#FFCCCC" "#CCCCFF") %>">
    <td><%= i %></td>
    <td><%= item %></td>
   </tr>
<%
   ) ; lambda end
   items) ; for-each end
 %>
  </table>
<%
) ; let end
%>
 </body>
</html>

Version data entries

214 entries across 188 versions & 44 rubygems

Version Path
rango-0.1.pre vendor/erubis/test/data/users-guide/example.escheme
simple-templater-0.0.1 vendor/erubis/test/data/users-guide/example.escheme
merb-core-1.1.0.pre spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/test/data/users-guide/example.escheme
erubis-2.6.5 test/data/users-guide/example.escheme
erubis-2.3.0 test/data/users-guide/example.escheme
erubis-2.6.2 test/data/users-guide/example.escheme
erubis-2.3.1 test/data/users-guide/example.escheme
erubis-2.6.0 test/data/users-guide/example.escheme
erubis-2.6.3 test/data/users-guide/example.escheme
erubis-2.4.0 test/data/users-guide/example.escheme
erubis-2.4.1 test/data/users-guide/example.escheme
erubis-2.5.0 test/data/users-guide/example.escheme
erubis-2.6.1 test/data/users-guide/example.escheme
erubis-2.6.4 test/data/users-guide/example.escheme