You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
340 B
12 lines
340 B
import os
|
|
import jinja2
|
|
|
|
from common.basedir import BASEDIR
|
|
|
|
with open(os.path.join(BASEDIR, "docs", "CARS_template.md"), 'r') as f:
|
|
template = f.read()
|
|
|
|
t = jinja2.Template(template, trim_blocks=True, lstrip_blocks=True)
|
|
|
|
rendered = t.render(tiers=[('Gold', ["FSR Long", "Other Lat"], []), ('Silver', ["FSR Long"], [])])
|
|
print(rendered)
|
|
|