cutelyst  3.9.1
A C++ Web Framework built on top of Qt, using the simple approach of Catalyst (Perl) framework.
clearsilver.h
1 /*
2  * SPDX-FileCopyrightText: (C) 2013-2022 Daniel Nicoletti <dantti12@gmail.com>
3  * SPDX-License-Identifier: BSD-3-Clause
4  */
5 #ifndef CLEARSILVER_H
6 #define CLEARSILVER_H
7 
8 #include <Cutelyst/View>
9 
10 #include <QObject>
11 #include <QStringList>
12 
13 namespace Cutelyst {
14 
15 class ClearSilverPrivate;
16 class CUTELYST_VIEW_CLEARSILVER_EXPORT ClearSilver final : public View
17 {
18  Q_OBJECT
19  Q_DECLARE_PRIVATE(ClearSilver)
20 public:
24  explicit ClearSilver(QObject *parent = nullptr, const QString &name = QString());
25 
26  Q_PROPERTY(QStringList includePaths READ includePaths WRITE setIncludePaths NOTIFY changed)
30  QStringList includePaths() const;
31 
35  void setIncludePaths(const QStringList &paths);
36 
37  Q_PROPERTY(
38  QString templateExtension READ templateExtension WRITE setTemplateExtension NOTIFY changed)
42  QString templateExtension() const;
43 
47  void setTemplateExtension(const QString &extension);
48 
49  Q_PROPERTY(QString wrapper READ wrapper WRITE setWrapper NOTIFY changed)
53  QString wrapper() const;
54 
59  void setWrapper(const QString &name);
60 
61  QByteArray render(Context *c) const final;
62 
63 Q_SIGNALS:
64  void changed();
65 };
66 
67 } // namespace Cutelyst
68 
69 #endif // CLEARSILVER_H
The Cutelyst Context.
Definition: context.h:38
The Cutelyst namespace holds all public Cutelyst API.
Definition: Mainpage.dox:7
Cutelyst View abstract view component
Definition: view.h:21