cutelyst / cutelee

A Qt Template Engine based on Django templates

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The Cutelee Libraries

OSX/Linux Build Status Windows Build status

  • About Cutelee
  • Installation
  • Licensing
  • Contributing

About Cutelee

Cutelee is a set of Free Software libraries written using the Qt framework. Currently two libraries are shipped with Cutelee: Cutelee Templates and Cutelee TextDocument.

The goal of Cutelee 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, and the core design of Django is reused in Cutelee.

<ul>
{% for athlete in athlete_list %}
<li>{{ athlete.name }}{% if athlete.isCaptain %} (C){% endif %}</li>
{% endfor %}
</ul>

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.

Installation

To build Cutelee, 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

Cutelee is covered by the GNU Lesser General Public License Version 2.1, or at your option, any later version. All contributions to Cutelee must be covered by the same license.

The details of the license are in the COPYING file in the source distribution.

Contributing

Cutelee is hosted on github, and welcomes pull requests and issues.

About

A Qt Template Engine based on Django templates

License:GNU Lesser General Public License v2.1


Languages

Language:C++ 91.7%Language:CMake 3.1%Language:Python 1.9%Language:HTML 1.7%Language:CSS 0.6%Language:C 0.5%Language:Qt Script 0.3%Language:Shell 0.3%