lib/puppet/parser/functions/template.rb in puppet-0.24.9 vs lib/puppet/parser/functions/template.rb in puppet-0.25.0
- old
+ new
@@ -1,8 +1,8 @@
-Puppet::Parser::Functions::newfunction(:template, :type => :rvalue, :doc =>
- "Evaluate a template and return its value. See `the templating docs
- </trac/puppet/wiki/PuppetTemplating>`_ for more information. Note that
- if multiple templates are specified, their output is all concatenated
+Puppet::Parser::Functions::newfunction(:template, :type => :rvalue, :doc =>
+ "Evaluate a template and return its value. See `the templating docs
+ </trac/puppet/wiki/PuppetTemplating>`_ for more information. Note that
+ if multiple templates are specified, their output is all concatenated
and returned as the output of the function.") do |vals|
require 'erb'
vals.collect do |file|
# Use a wrapper, so the template can't get access to the full