Issue #6592 has been updated by Peter Meier.

And to preserve the current behavior we could test whether the last argument is 
a Hash and then treat it as an option hash, for local variables.

----------------------------------------
Feature #6592: function_template should take an optional hash of values to pass 
in to the template
https://projects.puppetlabs.com/issues/6592#change-87196

* Author: Peter Meier
* Status: Needs Decision
* Priority: Normal
* Assignee: 
* Category: templates
* Target version: 
* Affected Puppet version: 
* Keywords: 
* Branch: 
----------------------------------------
As discussed in #6492 it should be possible to pass an optional hash of values 
to the template which will become local variables. Probably similar to the 
`:locals => {}` option in rails partials.


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to