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

Public Member Functions | |
| StaticSimple (Application *parent) | |
| void | setDirs (const QStringList &dirs) |
| void | setIncludePaths (const QStringList &paths) |
| virtual bool | setup (Application *app) override |
Public Member Functions inherited from Cutelyst::Plugin | |
| Plugin (Application *parent) | |
| virtual bool | setup (Application *app) |
Definition at line 15 of file staticsimple.h.
| StaticSimple::StaticSimple | ( | Application * | parent | ) |
Constructs a new static simple object with the given parent.
Definition at line 21 of file staticsimple.cpp.
|
overridevirtual |
Definition at line 29 of file staticsimple.cpp.
| void StaticSimple::setDirs | ( | const QStringList & | dirs | ) |
Sets a list of top-level directories beneath your 'root' directory that should always be served in static mode.
Definition at line 43 of file staticsimple.cpp.
| void StaticSimple::setIncludePaths | ( | const QStringList & | paths | ) |
Sets a list of directories in which to search for your static files. The directories will be searched in order and will return the first file found. Note that your root directory is not automatically added to the search path when you specify an include_path.
Definition at line 34 of file staticsimple.cpp.
|
overridevirtual |
Reimplemented from Plugin::setup().
Reimplemented from Cutelyst::Plugin.
Definition at line 49 of file staticsimple.cpp.
References Cutelyst::Application::beforePrepareAction().