Cutelyst
2.13.0
|
Public Member Functions | |
StaticSimple (Application *parent) | |
void | setDirs (const QStringList &dirs) |
void | setIncludePaths (const QStringList &paths) |
virtual bool | setup (Application *app) override |
![]() | |
Plugin (Application *parent) | |
Definition at line 28 of file staticsimple.h.
StaticSimple::StaticSimple | ( | Application * | parent | ) |
Constructs a new static simple object with the given parent.
Definition at line 35 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 56 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 47 of file staticsimple.cpp.
|
overridevirtual |
Reimplemented from Plugin::setup().
Reimplemented from Cutelyst::Plugin.
Definition at line 62 of file staticsimple.cpp.
References Cutelyst::Application::beforePrepareAction().