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