33 auto expr = tagContent.split(QLatin1Char(
' '), Qt::SkipEmptyParts);
37 auto expression = expr.join(QChar::fromLatin1(
' '));
40 auto filters = fe.filters();
41 if (filters.contains(QStringLiteral(
"safe"))
42 || filters.contains(QStringLiteral(
"escape"))) {
44 TagSyntaxError, QStringLiteral(
"Use the \"autoescape\" tag instead."));
49 auto filterNodes = p->
parse(n, QStringLiteral(
"endfilter"));
52 n->setNodeList(filterNodes);
The Context class holds the context to render a Template with.
void insert(const QString &name, QObject *object)