Cutelee
6.1.0
|
Public Member Functions | |
Node * | getNode (const QString &tagContent, Parser *p) const override |
![]() | |
AbstractNodeFactory (QObject *parent={}) | |
~AbstractNodeFactory () override | |
Additional Inherited Members | |
![]() | |
QList< FilterExpression > | getFilterExpressionList (const QStringList &list, Parser *p) const |
Q_INVOKABLE QStringList | smartSplit (const QString &str) const |
This method should be reimplemented to return a Node which can be rendered.
The tagContent
is the content of the tag including the tag name and arguments. For example, if the template content is {% my_tag arg1 arg2 %}
, the tagContent will be "my_tag arg1 arg2".
The Parser p
is available and can be advanced if appropriate. For example, if the tag has an end tag, the parser can be advanced to the end tag.
Implements Cutelee::AbstractNodeFactory.