MagicSmoke
$VERSION$
|
A Twig-like renderer for HTML pages or other text based documents. More...
#include <stick.h>
Public Member Functions | |
MStickRenderer () | |
instantiate the renderer More... | |
virtual | ~MStickRenderer () |
clean up More... | |
virtual QVariant | property (QString name) const |
returns a specific property or a NULL variant if not found More... | |
virtual QStringList | propertyNames () const |
returns the names of all known properties More... | |
virtual void | removeProperty (QString name) |
deletes a property/variable More... | |
virtual QString | render () |
executes one rendering run on the template and returns the result as string More... | |
virtual void | setProperties (QMap< QString, QVariant >properties) |
makes several properties available as variables in the renderer More... | |
virtual void | setProperty (QString name, QVariant value) |
makes a property available as a variable in the renderer More... | |
virtual void | setTemplate (QString text) |
sets the template as plain text More... | |
virtual void | setTemplateFile (QString filename) |
sets the template text file More... | |
A Twig-like renderer for HTML pages or other text based documents.
MStickRenderer::MStickRenderer | ( | ) |
instantiate the renderer
|
virtual |
clean up
|
virtual |
returns a specific property or a NULL variant if not found
|
virtual |
returns the names of all known properties
|
virtual |
deletes a property/variable
|
virtual |
executes one rendering run on the template and returns the result as string
References MStickToken::render().
|
virtual |
makes several properties available as variables in the renderer
|
virtual |
makes a property available as a variable in the renderer
|
virtual |
sets the template as plain text
References MStickTokenizer::createTokens().
Referenced by setTemplateFile().
|
virtual |
sets the template text file
References setTemplate().