On Fri, May 17, 2013 at 1:56 PM, Ashley Penney <apen...@gmail.com> wrote: > On Fri, May 17, 2013 at 4:08 PM, Daniel Pittman <dan...@puppetlabs.com> wrote: >> >> I think the best solution would be to change the `template` function >> to select the first entry, rather than concatenate, and allow users to >> manually concatenate multiple `template` calls if they wanted it. >> >> I understand the attraction of having an automatic, rather than >> manual, model for searching. I don't think it is a realistic goal, >> however, because of the wide variety of "search paths" that could be >> desired. Explicitly spelling out what is searched seems like the best >> balance of flexibility and extensibility to me. > > For what it's worth, this is something I would like to see. I found the > concatenation to be more of a pain than anything else, especially since the > concat module came about. Selecting the first entry would be an overall > improvement.
I was thinking of either of these two when I said concatenation: $one = template(...) $two = template(...) notice("${one}${two}") # concat! $three = concat($one, $two) # with the obvious implementation ...but, yeah, the module also satisfies. :) Basically, the language already allows you to do string pasting without too much hardship. Might as well do that the same way you do other string pasting. -- Daniel Pittman ⎋ Puppet Labs Developer – http://puppetlabs.com ♲ Made with 100 percent post-consumer electrons -- You received this message because you are subscribed to the Google Groups "Puppet Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-dev+unsubscr...@googlegroups.com. To post to this group, send email to puppet-dev@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-dev?hl=en. For more options, visit https://groups.google.com/groups/opt_out.