It was just an example.
render_template('something.html')
and then write the HTML for the template in a separate code section.
render_template('error.html')Anything else is a distraction.
Using render_template would have left us wondering whether there was anything relevant to the task in render_template, or at best interrupting the reader's flow.