How To Install grantlee on CentOS 7

In this tutorial we learn how to install grantlee on CentOS 7. grantlee is Qt string template engine based on the Django template system

Introduction

In this tutorial we learn how to install grantlee on CentOS 7.

What is grantlee

Grantlee is a plug-in based String Template system written using the Qt framework. The goals of the project are to make it easier for application developers to separate the structure of documents from the data they contain, opening the door for theming. The syntax is intended to follow the syntax of the Django template system, and the design of Django is reused in Grantlee. Django is covered by a BSD style license. Part of the design of both 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. For template authors, different applications using Grantlee will present the same interface and core syntax for creating new themes. For details of how to write templates, see the documentation. Grantlee is a plug-in based String Template system written using the Qt framework. The goals of the project are to make it easier for application developers to separate the structure of documents from the data they contain, opening the door for theming. The syntax is intended to follow the syntax of the Django template system, and the design of Django is reused in Grantlee. Django is covered by a BSD style license. Part of the design of both 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. For template authors, different applications using Grantlee will present the same interface and core syntax for creating new themes. For details of how to write templates, see the documentation.

We can use yum or dnf to install grantlee on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install grantlee.

Install grantlee on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install grantlee using yum by running the following command:

sudo yum -y install grantlee

Install grantlee on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

After updating yum database, We can install grantlee using dnf by running the following command:

sudo dnf -y install grantlee

How To Uninstall grantlee on CentOS 7

To uninstall only the grantlee package we can use the following command:

sudo dnf remove grantlee

References

Summary

In this tutorial we learn how to install grantlee on CentOS 7 using yum and dnf.