Grantlee version 0.1.8 (Codename: Der Hammer) now available

The Grantlee community is pleased to announce the release of Grantlee version 0.1.8 (Mirror).

This release includes the internationalization and localization features, and the version number is entirely coincidental :). There has been more development in this release than between any other two Grantlee releases. Most of the work went into i18n along with its tests, examples and documentation, but there was also the usual round of whitespace and const cleanups, support for QDate and QTime objects (with a very simple patch) and a couple of Windows issues resolved. All the unit tests pass on Windows again.

Another change though looks inconsequential, but is quite relevant to the future development of Grantlee. Internally, grantlee_core was renamed grantlee_templates, and grantlee_gui was renamed grantlee_textdocument. Grantlee will soon be getting some new libraries which are not directly related to string templating. Actually it already has one, as the rich text builders do not relate to string templating, though the two systems can be used together.

The new names reflect that the libraries are independent – grantlee_gui doesn’t depend on grantlee_core and never did – and also reflects better what the libraries actually relate to. Now though they’re also in completely separate directory trees, which will make it easy to add additional libraries.

6 Responses to “Grantlee version 0.1.8 (Codename: Der Hammer) now available”

  1. sebas Says:

    That’s some mighty cool stuff. I’ve been following the development a bit, and the i18n stuff in templates is really quite useful.

    I came across the lack of i18n in templates as well when using pieces of HTML combined with webkit widgets. The code is part of the (unreleased) Crystal desktop search plasmoid, which has a dashboard done in HTML + WebKit (actually makes creating a tag-cloud very easy), which gives it a webby feeling. I’ll look into using GrantLee for the templating, then.

    Thanks for these updates (blog *and* actual code :)).

  2. sebas Says:

    Ow, BTW. In the light of this cool release name, may I suggest “Die Wurst” as codename for a future Akonadi release? πŸ™‚

  3. steveire Says:

    Glad you like it. πŸ™‚

    Where did you come across the lack of i18n in templates before? In s self made template system? I just documented how you need to modify a script to extract Grantlee template strings:

    I’m looking forward to trying out Crystal.

    • sebas Says:

      Yes, a very simple own ‘template system’ (reads file from disk, replaces a bunch of strings, nothing fancy). I first used it for plasma-colored stylesheets, which makes it possible to adapt webviews looks dynamically to theme changes. The template code is now in kdelibs/plasma/theme, maybe we can use GrantLee for this, and fancier stuff in the future. A Silk topic. πŸ™‚

      One thing struck me, btw. By putting a KFileWatch onto the template file, and updating the view when the file on disk changes, you get a really nice workflow. You can just edit your template, hit save and the app automatically updates the view, making the changes visible immediately. Quite the relief from boring code-compile-install-restart development cycles. Instant gratification, so to say.

      Will has asked me to roll a Crystal package already, I might get to it this week. I’ll let you know then.

  4. steveire Says:

    Maybe when we release KMail2 we can call it ‘The best of the Wurst’ πŸ™‚

    • sebas Says:

      Make it “Wurscht” and it’s perfect. πŸ™‚

      (Wurscht is colloquial / accent in some regions of Germany and sounds more “authentic”. ;)).

Leave a Reply

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

You are commenting using your 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 )

Connecting to %s

%d bloggers like this: