Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
class master_concat_file { $content = "" file { "/tmp/arrayed": content => $content } } define entry_line() { include master_concat_file $master_concat_file::content += "$name\n" File <| title == "/tmp/arrayed" |> { content => $master_concat_file::content } } define special_line($env) { entry_line { "export $env special_$name": } } class test { entry_line { "cron": } special_line { "foo": env => "FOO=BAR", } entry_line { "huzzah": } } include test > Produced file contents cron huzzah export FOO=BAR special_foo
This paste will be private.
From the Design Piracy series on my blog: