• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

cmake/modules/H18-Dec-2019-389360

dox/H03-May-2022-2,8192,032

examples/H03-May-2022-7,3895,152

scripts/H18-Dec-2019-1,159758

templates/H03-May-2022-28,71118,548

textdocument/H03-May-2022-4,8273,072

.clang-formatH A D18-Dec-2019177 98

.travis.ymlH A D18-Dec-20195.2 KiB155145

AUTHORSH A D18-Dec-201965 62

CHANGELOGH A D18-Dec-20196.4 KiB176152

Mainpage.doxH A D18-Dec-20192.5 KiB9780

README.mdH A D18-Dec-20192.1 KiB6344

appveyor.ymlH A D18-Dec-20193.8 KiB10696

README.md

1
2The Grantlee Libraries
3======================
4
5[![OSX/Linux Build Status](https://travis-ci.org/steveire/grantlee.svg?branch=master)](https://travis-ci.org/steveire/grantlee)
6[![Windows Build status](https://ci.appveyor.com/api/projects/status/github/steveire/grantlee?branch=master&svg=true)](https://ci.appveyor.com/project/steveire/grantlee/branch/master)
7
8* About Grantlee
9* Installation
10* Licensing
11* Contributing
12
13About Grantlee
14--------------
15
16Grantlee is a set of Free Software libraries written using the [Qt framework](http://code.qt.io).
17Currently two libraries are shipped with Grantlee: Grantlee Templates and Grantlee
18TextDocument.
19
20The goal of Grantlee Templates is to make it easier for application developers to
21separate the structure of documents from the data they contain, opening the door
22for theming and advanced generation of other text such as code.
23
24The syntax uses the syntax of the [Django template system](https://docs.djangoproject.com/en/1.9/ref/templates/language/), and
25the core design of Django is reused in Grantlee.
26
27    <ul>
28    {% for athlete in athlete_list %}
29    <li>{{ athlete.name }}{% if athlete.isCaptain %} (C){% endif %}</li>
30    {% endfor %}
31    </ul>
32
33Part of the design of both template systems is that application developers can
34extend the syntax by implementing their own tags and filters. For details of how
35to do that, see the [API documentation](http://www.grantlee.org/apidox/extension.html).
36
37Installation
38------------
39
40To build Grantlee, you need at least Qt5.3 (with development packages) and CMake 3.1.
41Out-of-source builds are recommended:
42
43    mkdir build
44    cd build
45    cmake -DCMAKE_INSTALL_PREFIX=$prefix ..
46    cmake --build .
47    cmake --build . --target install
48
49Licensing
50---------
51
52Grantlee is covered by the GNU Lesser General Public License Version 2.1, or
53at your option, any later version. All contributions to Grantlee must be
54covered by the same license.
55
56The details of the license are in the COPYING file in the source distribution.
57
58Contributing
59------------
60
61Grantlee is hosted on github, and welcomes pull requests and issues.
62
63