|
cutelyst 3.9.1
A C++ Web Framework built on top of Qt, using the simple approach of Catalyst (Perl) framework.
|

Signals | |
| void | changed () |
Public Member Functions | |
| ClearSilver (QObject *parent=nullptr, const QString &name=QString()) | |
| Constructs a ClearSilver object with the given parent and name. | |
| QStringList | includePaths () const |
| Returns the list of include paths. | |
| QByteArray | render (Context *c) const final |
| void | setIncludePaths (const QStringList &paths) |
| Sets the list of include paths which will be looked for when resolving templates files. | |
| 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 wrapper template should render. | |
| QString | templateExtension () const |
| Returns the template extension. | |
| QString | wrapper () const |
| Returns the template wrapper. | |
Public Member Functions inherited from Cutelyst::View | |
| View (QObject *parent, const QString &name) | |
| virtual Modifiers | modifiers () const override |
| virtual QByteArray | render (Context *c) const =0 |
| void | setMinimalSizeToDeflate (qint32 minSize=-1) |
Public Member Functions inherited from Cutelyst::Component | |
| Component (QObject *parent=nullptr) | |
| bool | execute (Context *c) |
| virtual bool | init (Application *application, const QVariantHash &args) |
| virtual Modifiers | modifiers () const |
| QString | name () const |
| QString | reverse () const |
| void | setName (const QString &name) |
| void | setReverse (const QString &reverse) |
Properties | |
| QStringList | includePaths |
| QString | templateExtension |
| QString | wrapper |
Additional Inherited Members | |
Public Types inherited from Cutelyst::Component | |
| enum | Modifier { None , OnlyExecute , BeforeExecute , AroundExecute , AfterExecute } |
Protected Member Functions inherited from Cutelyst::View | |
| View (ViewPrivate *d, QObject *parent, const QString &name) | |
| A derived class using pimpl should call this constructor, to reduce the number of memory allocations. | |
Protected Member Functions inherited from Cutelyst::Component | |
| Component (ComponentPrivate *d, QObject *parent=nullptr) | |
| A derived class using pimpl should call this constructor, to reduce the number of memory allocations. | |
| virtual bool | afterExecute (Context *c) |
| void | applyRoles (const QStack< Component * > &roles) |
| virtual bool | aroundExecute (Context *c, QStack< Component * > stack) |
| virtual bool | beforeExecute (Context *c) |
| virtual bool | dispatcherReady (const Dispatcher *dispatch, Controller *controller) |
| virtual bool | doExecute (Context *c) |
Definition at line 16 of file clearsilver.h.
|
explicit |
Definition at line 18 of file clearsilver.cpp.
| QStringList ClearSilver::includePaths | ( | ) | const |
Definition at line 23 of file clearsilver.cpp.
|
finalvirtual |
All subclasses must reimplement this when doing it's rendering. If an error (c->error()) is not set c->response()->body() is defined with the returned value, this is useful if the view is not meant to be used as a body.
Implements Cutelyst::View.
Definition at line 72 of file clearsilver.cpp.
References Cutelyst::Context::error(), Cutelyst::Component::reverse(), and Cutelyst::Context::stash().
| void ClearSilver::setIncludePaths | ( | const QStringList & | paths | ) |
Definition at line 29 of file clearsilver.cpp.
| void ClearSilver::setTemplateExtension | ( | const QString & | extension | ) |
Definition at line 42 of file clearsilver.cpp.
| void ClearSilver::setWrapper | ( | const QString & | name | ) |
Definition at line 55 of file clearsilver.cpp.
References Cutelyst::Component::name().
| QString ClearSilver::templateExtension | ( | ) | const |
Definition at line 36 of file clearsilver.cpp.
| QString ClearSilver::wrapper | ( | ) | const |
Definition at line 49 of file clearsilver.cpp.
|
readwrite |
Definition at line 24 of file clearsilver.h.
|
readwrite |
Definition at line 35 of file clearsilver.h.
|
readwrite |
Definition at line 47 of file clearsilver.h.