Sha256: 19484d5f132aa88f34e52e4c39892dc113b69282d83a8930e87357437db37ed0

Contents?: true

Size: 713 Bytes

Versions: 26

Compression:

Stored size: 713 Bytes

Contents

$ erubis -l c example.ec
#line 1 "example.ec"

#include <stdio.h>

int main(int argc, char *argv[])
{
    int i;


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

    return 0; 
}

Version data entries

26 entries across 26 versions & 5 rubygems

Version Path
merb-core-1.1.3 spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/test/data/users-guide/example_c.result
erubis-2.6.6 test/data/users-guide/example_c.result
merb-core-1.1.2 spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/test/data/users-guide/example_c.result
merb-core-1.1.1 spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/test/data/users-guide/example_c.result
merb-core-1.1.0 spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/test/data/users-guide/example_c.result
merb-core-1.1.0.rc1 spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/test/data/users-guide/example_c.result
simple-templater-0.0.1.4 gems/gems/erubis-2.6.5/test/data/users-guide/example_c.result
ghazel-erubis-2.6.5.1 test/data/users-guide/example_c.result
simple-templater-0.0.1.3 vendor/erubis/test/data/users-guide/example_c.result
simple-templater-0.0.1.2 vendor/erubis/test/data/users-guide/example_c.result
simple-templater-0.0.1.1 vendor/erubis/test/data/users-guide/example_c.result
rango-0.0.6 vendor/erubis/test/data/users-guide/example_c.result
rango-0.1.pre vendor/erubis/test/data/users-guide/example_c.result
simple-templater-0.0.1 vendor/erubis/test/data/users-guide/example_c.result
merb-core-1.1.0.pre spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/test/data/users-guide/example_c.result
erubis-2.6.5 test/data/users-guide/example_c.result
erubis-2.3.0 test/data/users-guide/example_c.result
erubis-2.4.0 test/data/users-guide/example_c.result
erubis-2.6.2 test/data/users-guide/example_c.result
erubis-2.6.3 test/data/users-guide/example_c.result