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