File: test.tpl

package info (click to toggle)
ruby-rgen 0.10.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,428 kB
  • sloc: ruby: 11,344; xml: 1,368; yacc: 72; makefile: 10
file content (14 lines) | stat: -rw-r--r-- 434 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<% define 'Test', :for => Object do %>
  <%iinc%>
	<% expand 'Sub' %>
  <%idec%>
<% end %>

<% define 'Sub', :for => Object do %>
	Sub
	<%# white space after the following end tag but no NL %>
	<%# the bug was triggered when the @output of template loading %>
	<%# was non empty and not terminated by a newline; %>
	<%# without the space after end, the newline above this %>
	<%# define block would be the last character %>
<% end %>