34#if QT_VERSION < QT_VERSION_CHECK(5, 14, 0)
35 auto expr = tagContent.split(QLatin1Char(
' '), QString::SkipEmptyParts);
37 auto expr = tagContent.split(QLatin1Char(
' '), Qt::SkipEmptyParts);
40 if (expr.size() != 2) {
42 TagSyntaxError, QStringLiteral(
"autoescape takes two arguments."));
45 auto strState = expr.at(1);
47 if (strState == QStringLiteral(
"on"))
48 state = AutoescapeNode::On;
49 else if (strState == QStringLiteral(
"off"))
50 state = AutoescapeNode::Off;
53 QStringLiteral(
"argument must be 'on' or 'off'"));
58 auto list = p->
parse(n, QStringLiteral(
"endautoescape"));
The Context class holds the context to render a Template with.