summaryrefslogtreecommitdiffstats
path: root/smtk-import
diff options
context:
space:
mode:
authorGravatar Lubomir I. Ivanov <neolit123@gmail.com>2016-02-29 16:42:06 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-02-29 07:32:57 -0800
commit0aa8ef918df62399f621bc591528535ed550eaa2 (patch)
tree023e77db5ffd89fab9f1ff4812d7494236cff310 /smtk-import
parent0b7be8ec5e63bf5ff0c19258458e774e90f7cfa6 (diff)
downloadsubsurface-0aa8ef918df62399f621bc591528535ed550eaa2.tar.gz
templatelayout.cpp: add a HTML preprocessor stage
The current Grantlee template loading scheme does not allow a preprocessing layer. With the recent DiveObjectHelper changes the layer is required if we don't want to add a set of dummy methods and Q_PROPERTIES which will only inflate the DiveObjectHelper class. Use the already present helper readTemplate() to load the raw HTML template and pass it to a static function which does some variable replacement to accomudate DiveObjectHelper. This change is done for the sake of not breaking the Grantlee HTML variables on the user side! Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'smtk-import')
0 files changed, 0 insertions, 0 deletions