Cutelee 6.1.0
TemplateTagNode Class Reference
Inheritance diagram for TemplateTagNode:

Public Member Functions

 TemplateTagNode (const QString &tagName, QObject *parent={})
void render (OutputStream *stream, Context *c) const override
Public Member Functions inherited from Cutelee::Node
 Node (QObject *parent={})
 ~Node () override

Static Public Member Functions

static bool isKeyword (const QString &name)

Additional Inherited Members

Protected Member Functions inherited from Cutelee::Node
TemplateImpl * containerTemplate () const
void streamValueInContext (OutputStream *stream, const QVariant &input, Cutelee::Context *c) const

Detailed Description

Definition at line 37 of file templatetag.h.

Constructor & Destructor Documentation

◆ TemplateTagNode()

TemplateTagNode::TemplateTagNode ( const QString & tagName,
QObject * parent = {} )
explicit

The expression. Nodes to render if the expression is true Nodes to render if the expression is false

Definition at line 55 of file templatetag.cpp.

References Cutelee::Node::Node().

Member Function Documentation

◆ isKeyword()

bool TemplateTagNode::isKeyword ( const QString & name)
static

Definition at line 75 of file templatetag.cpp.

◆ render()

void TemplateTagNode::render ( OutputStream * stream,
Context * c ) const
overridevirtual

Reimplement this to render the template in the Context c.

This will also involve calling render on and child nodes.

Implements Cutelee::Node.

Definition at line 81 of file templatetag.cpp.