Lines Matching refs:template
254 def _make_section(template, name, directives, formatting):
255 varlist = template.find(".//*[@id='{}']".format(name))
276 def _make_colophon(template, groups):
284 para = template.find(".//para[@id='colophon']")
289 def _make_page(template, directive_groups, formatting):
299 _make_section(template, name, directives, formatting)
301 _make_colophon(template, directive_groups.values())
303 return template
307 template = tree.fromstring(TEMPLATE)
308 names = [vl.get('id') for vl in template.iterfind('.//variablelist')]
318 return _make_page(template, directive_groups, formatting)