I'm sure this is trivial but I can't get my arguments into my HTML string. I downloaded a standard template from https://templates.campaignmonitor.com/. I've tried:
Extract from 'index.html':
< p align="left" class="article-title">< singleline label="Title">%(headline)< /singleline>< /p>
Here is some code working on this as input:
f = open('index.html','r')
html = str(f.read())
html_complete = html % (headline='Today is the day')
which gives a syntax error. (html prints fine).
Also tried {} notation but I get a KeyError probably because there are "{" all over the html.