我正在尝试将我的原始HTML文件呈现到主烧瓶python项目中,但是当我运行它时,它给出此错误“ jinja2.exceptions.TemplateSyntaxError:意外的'%'”,有人可以帮忙吗?这将是一种荣幸。当前正在为此项目使用PyCharm IDE。
<html>
<head>
<title></title>
</head>
<body>
{{% for post in posts %}}
<h1>{{post.title}}</h1>
<p>By {{post.author}} on {{post.date_posted}}</p>
<p>By {{post.content}}</p>
{{%end for%}}
</body>