Lines Matching full:template
44 Template loader class.
46 An instance of this class is passed to the template engine. It is
47 responsible for reading the template file
52 def get_source(self, environment, template): argument
54 This function reads the template files.
61 if not os.path.isfile(template):
62 raise TemplateNotFound(template)
63 with open(template) as f:
65 return source, template, False
495 …nifesttemplate = ENV.get_template(os.path.join(sys.path[0], 'templates/manifestfilename.template'))
496 …rytemplate = ENV.get_template(os.path.join(sys.path[0], 'templates/partition_intermedia.template'))
497 …nfotemplate = ENV.get_template(os.path.join(sys.path[0], 'templates/partition_load_info.template'))
552 # Replace environment variables in the template filepath
553 templatefile_name = os.path.expandvars(file['template'])
561 template = ENV.get_template(templatefile_name)
564 outfile.write(template.render(context))
667 … epilog='Note that environment variables in template files will be replaced with their values')