(pxifile, outfile)
| 5 | |
| 6 | |
| 7 | def process_tempita(pxifile, outfile) -> None: |
| 8 | with open(pxifile, encoding="utf-8") as f: |
| 9 | tmpl = f.read() |
| 10 | pyxcontent = Tempita.sub(tmpl) |
| 11 | |
| 12 | with open(outfile, "w", encoding="utf-8") as f: |
| 13 | f.write(pyxcontent) |
| 14 | |
| 15 | |
| 16 | def main() -> None: |