#site.pp
$values = [val1, val2, otherval]
file
{
"demo.txt":
ensure => present,
path => "C:\\Software\demo.txt",
content => template('temp/temp.rb'),
}
}
#temp.erb
<% @values.each do |val| -%>
Some stuff with <%= val %><% end -%>
I want the output in seperate line but it is not working.
it gives the output as:
Some stuff with val1 Some stuff with val2 Some stuff with otherval
but I want the output like:
Some stuff with val1
Some stuff with val2
Some stuff with otherval
please help me.
↧