Sha256: f53db8a307aabad8543ba7507c40031d639fdd88157f6cba3b38721aafcf2336

Contents?: true

Size: 279 Bytes

Versions: 214

Compression:

Stored size: 279 Bytes

Contents

$ erubis -XU example11.rhtml
_buf = '';

     if @list.nil? || @list.empty? 

     else 

         @list.each_with_index do |item, i| 
                      _buf << ( i % 2 == 0 ? '#FCC' : '#CCF' ).to_s;
               _buf << ( item ).to_s;

         end 

     end 

_buf.to_s

Version data entries

214 entries across 188 versions & 44 rubygems

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