21 #ifndef GRANTLEE_CACHINGLOADERDECORATOR_H
22 #define GRANTLEE_CACHINGLOADERDECORATOR_H
24 #include "templateloader.h"
26 #include "grantlee_core_export.h"
31 class CachingLoaderDecoratorPrivate;
68 typedef QSharedPointer<CachingLoaderDecorator>
Ptr;
83 QPair< QString, QString >
getMediaUri(
const QString& fileName )
const;
104 CachingLoaderDecoratorPrivate *
const d_ptr;
Grantlee::Engine is the main entry point for creating Grantlee Templates.
CachingLoaderDecorator(Grantlee::AbstractTemplateLoader::Ptr loader)
An retrieval interface to a storage location for Template objects.
virtual ~CachingLoaderDecorator()
bool canLoadTemplate(const QString &name) const
Implements a loader decorator which caches compiled Template objects.
The Template class is a tree of nodes which may be rendered.
QSharedPointer< AbstractTemplateLoader > Ptr
QPair< QString, QString > getMediaUri(const QString &fileName) const
The Grantlee namespace holds all public Grantlee API.
Template loadByName(const QString &name, const Grantlee::Engine *engine) const