On 04/16/2014 11:53 AM, Andy Parker wrote:
> I am considering Joshua's request for the concat function. It would provide
> a way to emit text from within the embedded code in the template, and might
> help in some situations. But it another case where it adds a bit of special
> stuff to do something that that already be achieved with a little
> refactoring.

In fairness, a lot of the data structure walking that we see going on in
ERB templates today is because there's no way form of iteration in the
DSL without enabling the future parser.  Doing so just isn't an option
for modules going to the forge.  The situation will be a lot better when
the lowest common denominator for puppet versions that need to be
supported has a form of data structure iteration.

Still, I think some sort of echo/print/concat like functionality is
justified in templates/views.  In particular for the case where you want
to pass a [complex] template into a module as a parameter and not have
to fiddle with the internal data mangling logic.

-Josh

--

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-dev/534EF3FF.8030204%40cpan.org.
For more options, visit https://groups.google.com/d/optout.

Reply via email to