The best source of documentation is in the grantlee website http://www.grantlee.org. Examples of use are found here: http://www.grantlee.org/apidox/examples.html.
Linux build
-----------
To build Grantlee, you need at least Qt5.3 (with development packages), CMake 3.1 and
some additional optional packages:
sudo apt install cmake lcov cccc doxygen
The current Grantlee release (v.5.2.0) has a problem with escape sequences.
* Add next files from *taste3/TASTEeditor/templating/* to your project and set them in *.pro file:<br>
`HEADERS += \`<br>
` ...`<br>
` templating/abstractexportableobject.h \`<br>
` templating/exportableproperty.h \`<br>
` templating/stringtemplate.h \`<br>
` templating/templateeditor.h \`<br>
` templating/templatehighlighter.h \`<br>
` templating/xmlhighlighter.h \`<br>
` templating/templatesyntaxhelpdialog.h`<br>
`SOURCES += \`<br>
` ...`<br>
` templating/stringtemplate.cpp \`<br>
` templating/templateeditor.cpp \`<br>
` templating/templatehighlighter.cpp \`<br>
` templating/xmlhighlighter.cpp \`<br>
` templating/templatesyntaxhelpdialog.cpp`
* Write a successor of `AbstractExportableObject` as a lightweight wrapper to export your QObject-derived objects. Use implementation of `ExportableAADLObject` and its successors as a reference.
* Create exportable an object, cast it to `QVariant` and append it in `QHash<QString, QVariantList>` by using a `groupName()` as a key. Then invoke `StringTemplate::parseFile()` for parsing a template. Use implementation of `XmlDocExporter` from *taste3/TASTEeditor/app/* as a reference.