24 QMap<QString, QString> mContext;
35 explicit Template(
const QString& pTemplate);
56 [[nodiscard]] QString
render()
const;
Definition: Template.h:20
const QSet< QString > & getContextKeys() const
Get template context keys, i.e.
Definition: Template.cpp:55
QString render() const
Renders the template by replacing all contained context keys by context values.
Definition: Template.cpp:77
bool setContextParameter(const QString &pKey, const QString &pValue)
Set known context key as parameter.
Definition: Template.cpp:61
Template(const QString &pTemplate)
Construct the template pTemplate.
Definition: Template.cpp:37
static Template fromFile(const QString &pTemplateFileName)
Construct a template from file.
Definition: Template.cpp:17
A simple template renderer.
Definition: ActivationContext.h:15