Sha256: 8685751817499fe00b574ae956a9935945f9b26a4a553bfd8dc7ced85c79ab92

Contents?: true

Size: 510 Bytes

Versions: 188

Compression:

Stored size: 510 Bytes

Contents

<%
#include <string>
#include <iostream>
#include <sstream>

int main(int argc, char *argv[])
{
    int i;
    std::stringstream _buf;

%>
<html>
 <body>
  <p>Hello <%= argv[0] %>!</p>
  <table>
   <tbody>
    <% for (i = 1; i < argc; i++) { %>
    <tr bgcolor="<%= i % 2 == 0 ? "#FFCCCC" : "#CCCCFF" %>">
      <td><%= i %></td>
      <td><%= argv[i] %></td>
    </tr>
    <% } %>
   </tbody>
  </table>
 </body>
</html>
<%

    std::string _output = _buf.str();
    std::cout << _output;
    return 0; 
}
%>

Version data entries

188 entries across 162 versions & 41 rubygems

Version Path
vagrant-unbundled-2.2.10.0 vendor/bundle/ruby/2.7.0/gems/erubis-2.7.0/examples/basic/example.ecpp
vagrant-unbundled-2.2.9.0 vendor/bundle/ruby/2.7.0/gems/erubis-2.7.0/examples/basic/example.ecpp
files.com-1.0.55 docs/vendor/bundle/ruby/2.5.0/gems/erubis-2.7.0/examples/basic/example.ecpp
vagrant-unbundled-2.2.8.0 vendor/bundle/ruby/2.7.0/gems/erubis-2.7.0/examples/basic/example.ecpp
vagrant-unbundled-2.2.7.0 vendor/bundle/ruby/2.7.0/gems/erubis-2.7.0/examples/basic/example.ecpp
vagrant-unbundled-2.2.7.0 vendor/bundle/ruby/2.4.0/gems/erubis-2.7.0/examples/basic/example.ecpp
vagrant-unbundled-2.2.7.0 vendor/bundle/ruby/2.6.0/gems/erubis-2.7.0/examples/basic/example.ecpp
vagrant-unbundled-2.2.6.2 vendor/bundle/ruby/2.6.0/gems/erubis-2.7.0/examples/basic/example.ecpp
vagrant-unbundled-2.2.6.1 vendor/bundle/ruby/2.6.0/gems/erubis-2.7.0/examples/basic/example.ecpp
vagrant-unbundled-2.2.6.0 vendor/bundle/ruby/2.6.0/gems/erubis-2.7.0/examples/basic/example.ecpp
vagrant-unbundled-2.2.5.0 vendor/bundle/ruby/2.6.0/gems/erubis-2.7.0/examples/basic/example.ecpp
vagrant-unbundled-2.2.5.0 vendor/bundle/ruby/2.5.0/gems/erubis-2.7.0/examples/basic/example.ecpp
vagrant-unbundled-2.2.4.0 vendor/bundle/ruby/2.6.0/gems/erubis-2.7.0/examples/basic/example.ecpp
vagrant-unbundled-2.2.4.0 vendor/bundle/ruby/2.5.0/gems/erubis-2.7.0/examples/basic/example.ecpp
vagrant-unbundled-2.2.3.0 vendor/bundle/ruby/2.5.0/gems/erubis-2.7.0/examples/basic/example.ecpp
vagrant-unbundled-2.2.2.0 vendor/bundle/ruby/2.5.0/gems/erubis-2.7.0/examples/basic/example.ecpp
vagrant-unbundled-2.2.0.0 vendor/bundle/ruby/2.5.0/gems/erubis-2.7.0/examples/basic/example.ecpp
vagrant-unbundled-2.1.4.0 vendor/bundle/ruby/2.5.0/gems/erubis-2.7.0/examples/basic/example.ecpp
vagrant-unbundled-2.1.2.0 vendor/bundle/ruby/2.3.0/gems/erubis-2.7.0/examples/basic/example.ecpp
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/erubis-2.7.0/examples/basic/example.ecpp