- CitrineOS core extracted (CSMS OCPP 2.0.1) - OpenOCPP extracted (firmware OCPP 1.6J/2.0.1) - ShapeShifter library installed (pip install -e) - ShapeShifter specification extracted - EVerest extracted TODO updated with progress
15 lines
307 B
Python
15 lines
307 B
Python
import jinja2
|
|
|
|
template_file = r"@INDEX_TEMPLATE_FILE@"
|
|
output_file = r"@INDEX_FILE@"
|
|
|
|
substitutions = {
|
|
"HEADLINE": "@CURRENT_FOLDER_NAME@",
|
|
}
|
|
|
|
with open(template_file, 'r') as f:
|
|
template = jinja2.Template(f.read())
|
|
|
|
with open(output_file, 'w') as f:
|
|
f.write(template.render(**substitutions))
|