How do you use Grantlee?

Grantlee has been out in the wild for quite some years now. Development stagnated for a while as I was concentrating on other things, but I’m updating it now to prepare for a new release.

I’m giving a talk about it in just over a week (the first since 2009), and I’m wondering how people are using it these days. The last time I really investigated this was 6 years ago.

I’m really interested in knowing about other users of Grantlee and other use-cases where it fits. Here are some of the places I’m already aware of Grantlee in use:

Many areas of KDE PIM use Grantlee for rendering content such as addressbook entries and rss feeds along with some gui editors for creating a new look. The qgitx tool also uses it for rendering commits in the view with a simple template.

qgit-grantlee

It is also used in the Cutelyst web framework for generating html, templated emails and any other use-cases users of that framework have.

There is also rather advanced Grantlee integration available in KDevelop for new class generation, using the same principles I blogged about some years ago.

It is also used by the subsurface application for creating dive summaries and reports. Skrooge also uses it for report generation.

It is used in Oyranos buildsystem, seemingly to generate some of the code compiled into the application.

Also on the subject of generating things, it seems to be used in TexturePacker, a tool for game developers to create efficient assets for their games. Grantlee enables one of the core selling points of that software, enabling it to work with any game engine.

Others have contacted me about using Grantlee to generate documentation, or to generate unit tests to feed to another DSL. That’s not too far from how kitemmodels uses it to generate test cases for proxy model crashes.

Do you know of any other users or use-cases for Grantlee? Let us know in the comments!

5 Responses to “How do you use Grantlee?”

  1. AndreasLoew Says:

    I am Andreas, developer of TexturePacker. You are right – we are using Grantlee for quite some time now.

    I really like Grantlee and how easy it was to use it.

    It seemed that your project was dead but I am happy to see that you are still updating it.

    What are your plans concerning Qt Script beeing deprecated?

  2. steveire Says:

    My understanding is that you can continue to build QtScript from source and use that. QJsEngine misses some things which I think would be required by Grantlee as a replacement js engine (http://thread.gmane.org/gmane.comp.lib.qt.devel/19364 , http://thread.gmane.org/gmane.comp.lib.qt.devel/24980), but actually I haven’t looked into it. If you want to fill the gap, you could probably raise it on the Qt mailing list.

  3. Pino Toscano Says:

    > Development stagnated for a while as I was concentrating on other things,

    Ah, that explains why pull requests on (the now defunct) gitorious were basically ignored and stagnated there without a single reply.

    Anyway, khelpcenter since Applications 16.04 uses grantlee for the overview page, for showing the glossary entries, and the search results.

    • steveire Says:

      > Ah, that explains why pull requests on (the now defunct) gitorious were basically ignored and stagnated there without a single reply.

      Sorry about that.

      Thanks, I’ll look into what khelpcenter is doing with it.

  4. Links 18/4/2016: Linux 4.6 RC4, Tomb Raider for GNU/Linux | Techrights Says:

    […] How do you use Grantlee? […]

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


%d bloggers like this: