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