File: test.tpl

package info (click to toggle)
ruby-rgen 0.8.0-1.1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 3,152 kB
  • sloc: ruby: 11,229; xml: 2,181; yacc: 72; makefile: 2
file content (16 lines) | stat: -rw-r--r-- 356 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<% define 'Test', :for => Object do %>
  <%iinc%>
	Start <% expand 'Sub' %><%nows%>
  <%idec%>
<% end %>

<% define 'Sub', :for => Object do %>
  <%# here we have the noIndentNextLine flag set %>
  <% expand 'Sub2' %>
  Sub
<% end %>

<% define 'Sub2', :for => Object do %>
  <%# here we reset the noIndentNextLine flag %>
  Sub2
<% end %>