Jun-24-2019, 06:07 AM
Hi,
Regards, noisefloor
Quote: I assume that when calling other files we have to use quotes.No, actually that's plain Python syntax.
return render_template('about.html', title=About)
calls the render_template
method, the 1st argument is the template to render. The key word argument title
binds something to the variable title
to be used within the context of the template. So title=About
would bind the variable About
to title - but a variable About
is not existing in your code. title='About'
binds the string About
to title - which of course works.Regards, noisefloor