17 #ifndef NURIA_FILETEMPLATELOADER_HPP
18 #define NURIA_FILETEMPLATELOADER_HPP
20 #include "templateloader.hpp"
21 #include "twig_global.hpp"
27 class FileTemplateLoaderPrivate;
62 QVector< QDir > searchPaths ()
const;
65 void addSearchPath (
const QDir &path);
68 void setSearchPaths (
const QVector< QDir > &paths)
const;
71 QString suffix ()
const;
77 void setSuffix (
const QString &suffix);
80 QByteArray load (
const QString &name)
override;
81 bool hasTemplate (
const QString &name)
override;
82 bool hasTemplateChanged (
const QString &name,
const QDateTime &since)
override;
85 QString findTemplatePath (
const QString &name)
const;
86 bool pathContainsTemplate (
const QDir &path,
const QString &name, QString &filePath)
const;
88 FileTemplateLoaderPrivate *d_ptr;
94 #endif // NURIA_FILETEMPLATELOADER_HPP
A template loader which loads templates from files.
Definition: filetemplateloader.hpp:45
Loader of template data for TemplateEngine.
Definition: templateloader.hpp:40
Definition: abstractsessionmanager.hpp:24