Sha256: 7a93b26a543d37a59acb5ea7a199f9ec6930f62a5b7259cbf4a01e34e193753c
Contents?: true
Size: 850 Bytes
Versions: 6
Compression:
Stored size: 850 Bytes
Contents
<% define 'Root' do %> <% file 'testout.txt' do %> Document: <%= title %> <%nl%> <%iinc%> by <% expand 'content/author::Author', :foreach => authors, :separator => ' and ' %> <%idec%> <%nl%> Index:<%iinc%> <% for c in chapters %> <% nr = (nr || 0); nr += 1 %> <% expand 'index/chapter::Root', nr, this, :for => c %> <% end %><%idec%> <%nl%> ---------------- <%nl%> Chapters in one line: <% expand 'content/chapter::Root', :foreach => chapters, :separator => ", " %><%nl%> <%nl%> Chapters each in one line: <% expand 'content/chapter::Root', :foreach => chapters, :separator => ",\n" %><%nl%> <%nl%> Here are some code examples: <% expand 'code/array::ArrayDefinition', :for => sampleArray %> <% end %> <% end %> <% define 'TextFromRoot' do %> Text from Root <% end %>
Version data entries
6 entries across 6 versions & 1 rubygems