Macroify unicode symbols to avoid needing to keep symbol and code in sync

This commit is contained in:
2025-10-14 15:43:14 -05:00
parent 27d2c84ad1
commit 85cafceebf
2 changed files with 40 additions and 35 deletions

View File

@@ -8,6 +8,7 @@ import sys
def render(filename, options={}):
env = Environment(loader=FileSystemLoader("."), trim_blocks=True, lstrip_blocks=True)
env.globals['ord'] = ord
template = env.get_template(filename)
return template.render(options)