Sha256: 545102f1a83c4a8241117425a974dcb4b6045db86c1b97cc1e6d9c0b46aabfba

Contents?: true

Size: 451 Bytes

Versions: 214

Compression:

Stored size: 451 Bytes

Contents

$ erubis -l perl example.eperl
use HTML::Entities; 
   my $user = 'Erubis';
   my @list = ('<aaa>', 'b&b', '"ccc"');

print('<html>
 <body>
  <p>Hello '); print($user); print('!</p>
  <table>
');     $i = 0; 
    for $item (@list) { 
print('   <tr bgcolor='); print(++$i % 2 == 0 ? '#FFCCCC' : '#CCCCFF'); print('">
    <td>'); print($i); print('</td>
    <td>'); print($item); print('</td>
   </tr>
');     } 
print('  </table>
 </body>
</html>
'); 

Version data entries

214 entries across 188 versions & 44 rubygems

Version Path
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/erubis-2.7.0/test/data/users-guide/example_perl.result
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/example_perl.result
brakeman-4.3.1 bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/example_perl.result
vagrant-unbundled-2.1.1.0 vendor/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/example_perl.result
brakeman-4.3.0 bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/example_perl.result
vagrant-unbundled-2.0.4.0 vendor/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/example_perl.result
vagrant-unbundled-2.0.3.0 vendor/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/example_perl.result
brakeman-4.2.1 bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/example_perl.result
brakeman-4.2.0 bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example_perl.result
vagrant-unbundled-2.0.2.0 vendor/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/example_perl.result
vagrant-unbundled-2.0.2.0 vendor/bundle/ruby/2.4.0/gems/erubis-2.7.0/test/data/users-guide/example_perl.result
brakeman-4.1.1 bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example_perl.result
brakeman-4.1.0 bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example_perl.result
vagrant-unbundled-2.0.1.0 vendor/bundle/ruby/2.4.0/gems/erubis-2.7.0/test/data/users-guide/example_perl.result
brakeman-4.0.1 bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example_perl.result
brakeman-4.0.1.pre1 bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example_perl.result
brakeman-4.0.0 bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example_perl.result
vagrant-unbundled-2.0.0.1 vendor/bundle/ruby/2.4.0/gems/erubis-2.7.0/test/data/users-guide/example_perl.result
vagrant-unbundled-1.9.8.1 vendor/bundle/ruby/2.4.0/gems/erubis-2.7.0/test/data/users-guide/example_perl.result
brakeman-3.7.2 bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example_perl.result