templatelayout.h: expose "dive.suit" as a Grantlee HTML variable

Having {{ dive.suit }} in the HTML will now return the
suit as QString (from struct dive->suit).

Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Lubomir I. Ivanov 2015-11-17 00:29:19 +02:00 committed by Dirk Hohndel
parent dd944ab33f
commit 3365a506ef

View file

@ -82,6 +82,8 @@ else if (property == "tags")
return object.tags();
else if (property == "gas")
return object.gas();
else if (property == "suit")
return object.suit();
GRANTLEE_END_LOOKUP
GRANTLEE_BEGIN_LOOKUP(template_options)