23 #ifndef GRANTLEE_FILTER_H
24 #define GRANTLEE_FILTER_H
26 #include "grantlee_templates_export.h"
27 #include "outputstream.h"
28 #include "safestring.h"
30 #include <QtCore/QSharedPointer>
31 #include <QtCore/QStringList>
32 #include <QtCore/QVariant>
52 class GRANTLEE_TEMPLATES_EXPORT
Filter
70 SafeString escape(
const QString &input )
const;
88 virtual QVariant doFilter(
const QVariant &input,
89 const QVariant &argument = QVariant(),
90 bool autoescape =
false
96 virtual bool isSafe()
const;
Base class for all filters.
The OutputStream class is used to render templates to a QTextStream.
A QString wrapper class for containing whether a string is safe or needs to be escaped.
The Grantlee namespace holds all public Grantlee API.