8#include <Cutelyst/View>
15class ClearSilverPrivate;
24 explicit ClearSilver(QObject *parent =
nullptr,
const QString &
name = QString());
26 Q_PROPERTY(QStringList includePaths READ includePaths WRITE
setIncludePaths NOTIFY changed)
30 QStringList includePaths()
const;
42 QString templateExtension()
const;
49 Q_PROPERTY(QString wrapper READ wrapper WRITE
setWrapper NOTIFY changed)
53 QString wrapper()
const;
void setTemplateExtension(const QString &extension)
Sets the template extension, defaults to ".html".
void setWrapper(const QString &name)
Sets the template wrapper name, the template will be rendered into content variable in which the wrap...
ClearSilver(QObject *parent=nullptr, const QString &name=QString())
Constructs a ClearSilver object with the given parent and name.
void setIncludePaths(const QStringList &paths)
Sets the list of include paths which will be looked for when resolving templates files.
QByteArray render(Context *c) const final
View(QObject *parent, const QString &name)
The Cutelyst namespace holds all public Cutelyst API.