Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
# sample manifest $ip_list = "10.0.0.1,10.0.0.2" file { "/tmp/ip_file": content => template("ip.erb") } # template <% ip_list.split(/,/).each do |ip| %><%= ip %> <% end %> # output file $ cat /tmp/ip_file 10.0.0.1 10.0.0.2
This paste will be private.
From the Design Piracy series on my blog: