cutelyst 5.0.0
A C++ Web Framework built on top of Qt, using the simple approach of Catalyst (Perl) framework.
cutelystcutelee.cpp
1/*
2 * SPDX-FileCopyrightText: (C) 2017-2022 Daniel Nicoletti <dantti12@gmail.com>
3 * SPDX-License-Identifier: BSD-3-Clause
4 */
5#include "cutelystcutelee.h"
6
7#include "csrf.h"
8#include "urifor.h"
9
10using namespace Qt::StringLiterals;
11
12CutelystCutelee::CutelystCutelee(QObject *parent)
13 : QObject(parent)
14{
15}
16
17QHash<QString, Cutelee::AbstractNodeFactory *> CutelystCutelee::nodeFactories(const QString &name)
18{
19 Q_UNUSED(name)
20
22 {u"c_uri_for"_s, new UriForTag()},
23 {u"c_csrf_token"_s, new CSRFTag()},
24 {u"c_csrf_token_value"_s, new CSRFTokenTag()}};
25
26 return ret;
27}
28
29QHash<QString, Cutelee::Filter *> CutelystCutelee::filters(const QString &name)
30{
31 Q_UNUSED(name)
32
34
35 return ret;
36}
37
38#include "moc_cutelystcutelee.cpp"