Sha256: d992cd1725af18b36fa91be23337d2e8b2412bcbf2c65d17bfb7ab727ec77be6

Contents?: true

Size: 852 Bytes

Versions: 231

Compression:

Stored size: 852 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 => ",\r\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

231 entries across 231 versions & 3 rubygems

Version Path
rgen-0.10.2 test/template_language_test/templates/root.tpl
rgen-0.10.0 test/template_language_test/templates/root.tpl
rgen-0.9.1 ./test/template_language_test/templates/root.tpl
rgen-0.8.3 test/template_language_test/templates/root.tpl
rgen-0.8.4 test/template_language_test/templates/root.tpl
rgen-0.9.0 test/template_language_test/templates/root.tpl
puppet-4.10.12 lib/puppet/vendor/rgen/test/template_language_test/templates/root.tpl
puppet-4.10.12-x86-mingw32 lib/puppet/vendor/rgen/test/template_language_test/templates/root.tpl
puppet-4.10.12-x64-mingw32 lib/puppet/vendor/rgen/test/template_language_test/templates/root.tpl
puppet-4.10.12-universal-darwin lib/puppet/vendor/rgen/test/template_language_test/templates/root.tpl
puppet-4.10.11 lib/puppet/vendor/rgen/test/template_language_test/templates/root.tpl
puppet-4.10.11-x86-mingw32 lib/puppet/vendor/rgen/test/template_language_test/templates/root.tpl
puppet-4.10.11-x64-mingw32 lib/puppet/vendor/rgen/test/template_language_test/templates/root.tpl
puppet-4.10.11-universal-darwin lib/puppet/vendor/rgen/test/template_language_test/templates/root.tpl
puppet-4.10.10 lib/puppet/vendor/rgen/test/template_language_test/templates/root.tpl
puppet-4.10.10-x86-mingw32 lib/puppet/vendor/rgen/test/template_language_test/templates/root.tpl
puppet-4.10.10-x64-mingw32 lib/puppet/vendor/rgen/test/template_language_test/templates/root.tpl
puppet-4.10.10-universal-darwin lib/puppet/vendor/rgen/test/template_language_test/templates/root.tpl
puppet-4.10.9 lib/puppet/vendor/rgen/test/template_language_test/templates/root.tpl
puppet-4.10.9-x86-mingw32 lib/puppet/vendor/rgen/test/template_language_test/templates/root.tpl