~ubuntu-branches/ubuntu/saucy/ruby-erubis/saucy

« back to all changes in this revision

Viewing changes to test/data/users-guide/example11.result

  • Committer: Package Import Robot
  • Author(s): Laurent Bigonville
  • Date: 2012-01-26 15:15:58 UTC
  • Revision ID: package-import@ubuntu.com-20120126151558-9u7mnf9ooqnw3bwz
Tags: upstream-2.7.0
ImportĀ upstreamĀ versionĀ 2.7.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
$ erubis -X example11.rhtml
 
2
_buf = '';
 
3
 
 
4
 
 
5
 
 
6
 
 
7
 
 
8
     if @list.nil? || @list.empty? 
 
9
 
 
10
     else 
 
11
 
 
12
 
 
13
         @list.each_with_index do |item, i| 
 
14
                      _buf << ( i % 2 == 0 ? '#FCC' : '#CCF' ).to_s;
 
15
               _buf << ( item ).to_s;
 
16
 
 
17
         end 
 
18
 
 
19
 
 
20
     end 
 
21
 
 
22
 
 
23
_buf.to_s