As long as we're lacking a builtin method for pretty-printing data
structures during a debug session inline templates are going to
continue to be popular in scenarios like this.

On Tue, Jan 17, 2012 at 10:06 AM, Krzysztof Wilczynski
<krzysztof.wilczyn...@linux.com> wrote:
> Hi Felix,
>
>> Seeing as this has not been mentioned in the thread yet, I'm compelled
>> to add:
>>
>> $array_to_str = inline_template("<%= array * ', ' %>")
>>
>> or even
>>
>> notify { "my-notify":
>>   message => inline_template("Here is the <%= array * ', ' %>.");
>>
>> }
>
> Ah, the oldie but goodie inline_template() abuse :-)
>
> We should stop endorsing this, really, hehe :)
>
> KW
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Puppet Users" group.
> To post to this group, send email to puppet-users@googlegroups.com.
> To unsubscribe from this group, send email to 
> puppet-users+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/puppet-users?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to