17 #ifndef NURIA_MEMORYTEMPLATELOADER_HPP
18 #define NURIA_MEMORYTEMPLATELOADER_HPP
20 #include "templateloader.hpp"
21 #include "twig_global.hpp"
26 class MemoryTemplateLoaderPrivate;
44 typedef QMap< QString, QByteArray >
Map;
65 void setMap (
const Map &map);
71 void addTemplate (
const QString &name,
const QByteArray &data);
76 void removeTemplate (
const QString &name);
82 QByteArray load (
const QString &name)
override;
84 bool hasTemplate (
const QString &name)
override;
87 MemoryTemplateLoaderPrivate *d_ptr;
93 #endif // NURIA_MEMORYTEMPLATELOADER_HPP
Loader of template data for TemplateEngine.
Definition: templateloader.hpp:40
Definition: abstractsessionmanager.hpp:24
A template loader which stores templates in-memory.
Definition: memorytemplateloader.hpp:36
QMap< QString, QByteArray > Map
Definition: memorytemplateloader.hpp:44