cutelyst
3.9.1
A C++ Web Framework built on top of Qt, using the simple approach of Catalyst (Perl) framework.
cutelystgrantlee.cpp
1
/*
2
* SPDX-FileCopyrightText: (C) 2017-2022 Daniel Nicoletti <dantti12@gmail.com>
3
* SPDX-License-Identifier: BSD-3-Clause
4
*/
5
#include "cutelystgrantlee.h"
6
7
#include "csrf.h"
8
#include "urifor.h"
9
10
CutelystGrantlee::CutelystGrantlee(
QObject
*parent)
11
:
QObject
(parent)
12
{
13
}
14
15
QHash<QString, Grantlee::AbstractNodeFactory *>
CutelystGrantlee::nodeFactories(
const
QString
&name)
16
{
17
Q_UNUSED(name)
18
19
QHash<QString, Grantlee::AbstractNodeFactory *>
ret{
20
{QStringLiteral(
"c_uri_for"
),
new
UriForTag()},
21
{QStringLiteral(
"c_csrf_token"
),
new
CSRFTag()},
22
};
23
24
return
ret;
25
}
26
27
QHash<QString, Grantlee::Filter *>
CutelystGrantlee::filters(
const
QString
&name)
28
{
29
Q_UNUSED(name)
30
31
QHash<QString, Grantlee::Filter *>
ret;
32
33
return
ret;
34
}
35
36
#include "moc_cutelystgrantlee.cpp"
QHash
QObject
QString
Cutelyst
Plugins
View
Grantlee
cutelystgrantlee.cpp
Generated on
for cutelyst by
1.16.1