# File lib/puppet/parser/files.rb, line 62 62: def find_template_in_module(template, environment = nil) 63: path, file = split_file_path(template) 64: 65: # Because templates don't have an assumed template name, like manifests do, 66: # we treat templates with no name as being templates in the main template 67: # directory. 68: return nil unless file 69: 70: if mod = Puppet::Module.find(path, environment) and t = mod.template(file) 71: return t 72: end 73: nil 74: end