41 QStringLiteral(
"Error: Include tag takes only one argument"));
43 auto includeName = expr.at(1);
44 auto size = includeName.size();
46 if ((includeName.startsWith(QLatin1Char(
'"'))
47 && includeName.endsWith(QLatin1Char(
'"')))
48 || (includeName.startsWith(QLatin1Char(
'\''))
49 && includeName.endsWith(QLatin1Char(
'\'')))) {
91 auto t = ti->engine()->loadByName(m_name);
94 TagSyntaxError, QStringLiteral(
"Template not found %1").arg(m_name));
106 auto nodes = t->findChildren<
BlockNode *>();
107 blockContext.remove(nodes);
108 variant.setValue(blockContext);
The Context class holds the context to render a Template with.
RenderContext * renderContext() const
QVariant & data(const Node *const scopeNode)