Updating report and adding more jobs

usually the do something like:
tmpl ='''
 here comes html code with {val1} {val2} ...
'''
form_txt_here = 'The caption...'
for x in long_lst:
    form_txt_here += tmpl.format(val1= , val2=...)