Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/steveire/grantlee
Libraries for text templating with Qt
https://github.com/steveire/grantlee
Last synced: 3 months ago
JSON representation
Libraries for text templating with Qt
- Host: GitHub
- URL: https://github.com/steveire/grantlee
- Owner: steveire
- License: other
- Created: 2015-03-11T20:33:25.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2023-08-13T07:20:09.000Z (about 1 year ago)
- Last Synced: 2024-04-26T19:32:31.295Z (7 months ago)
- Language: C++
- Size: 3.44 MB
- Stars: 140
- Watchers: 14
- Forks: 51
- Open Issues: 25
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG
- License: COPYING.LIB
- Authors: AUTHORS
Awesome Lists containing this project
- awesome-qt - grantlee - Django-inspired text templating. (Libraries / New Functionality)
README
The Grantlee Libraries
======================[![OSX/Linux Build Status](https://travis-ci.org/steveire/grantlee.svg?branch=master)](https://travis-ci.org/steveire/grantlee)
[![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)* About Grantlee
* Installation
* Licensing
* ContributingAbout Grantlee
--------------Grantlee is a set of Free Software libraries written using the [Qt framework](http://code.qt.io).
Currently two libraries are shipped with Grantlee: Grantlee Templates and Grantlee
TextDocument.The goal of Grantlee Templates is to make it easier for application developers to
separate the structure of documents from the data they contain, opening the door
for theming and advanced generation of other text such as code.The syntax uses the syntax of the [Django template system](https://docs.djangoproject.com/en/1.9/ref/templates/language/), and
the core design of Django is reused in Grantlee.
- {{ athlete.name }}{% if athlete.isCaptain %} (C){% endif %}
{% for athlete in athlete_list %}
{% endfor %}
Part of the design of both template systems is that application developers can
extend the syntax by implementing their own tags and filters. For details of how
to do that, see the [API documentation](http://www.grantlee.org/apidox/extension.html).
Installation
------------
To build Grantlee, you need at least Qt5.3 (with development packages) and CMake 3.1.
Out-of-source builds are recommended:
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=$prefix ..
cmake --build .
cmake --build . --target install
Licensing
---------
Grantlee is covered by the GNU Lesser General Public License Version 2.1, or
at your option, any later version. All contributions to Grantlee must be
covered by the same license.
The details of the license are in the COPYING file in the source distribution.
Contributing
------------
Grantlee is hosted on github, and welcomes pull requests and issues.