Skip to content

Instantly share code, notes, and snippets.

@arusso
Last active December 12, 2015 04:08
Show Gist options
  • Save arusso/4712284 to your computer and use it in GitHub Desktop.
Save arusso/4712284 to your computer and use it in GitHub Desktop.
value 0
value 1
value 2
value 3
$tmpl = "<% @foo = 0 %>
<% Array(bar).each do |flan| -%>
value <%= @foo %>
<% @foo += 1 %>
<% end %>"
$bar = [ 'zero-', 'one-', 'two-', 'tree-fiddy' ]
file { '/tmp/test2':
ensure => file,
content => inline_template($tmpl),
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment