<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Oct 28, 2015 at 11:59 AM, Lubomir I. Ivanov <span dir="ltr"><<a href="mailto:neolit123@gmail.com" target="_blank">neolit123@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">...for fun.<br>
<br>
not much to prove here other than what we need for the printing<br>
templates is quite simple and Grantlee is an overkill.<br>
<br>
unfortunately, it's already tightly integrated in the source tree as<br>
Gehad did well implementing it.<br>
i have no plans to change that anytime soon.<br>
<br>
a couple of years ago i suggested to write a simple parser for HTML<br>
input with variable replacement (i was planning C, even), but i didn't<br>
have a good idea how to approach the printing templates business.<br>
instead, Tomaz suggested Grantlee and we agreed it's the way to go.<br></blockquote><div><br></div><div>oh well, it's already stable and used by quite a lot of projects. We can also talk to the maintainer and show your version to see if he is interested in simplyfing grantlee. :)<br></div><div>or rip off grantlee's code from subsurface if that makes the code easier / faster. I'm always in favor of refactoring something to make it better.<br><br> <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
here is the Qt version of such a POC parser that uses QHash and QString.<br>
<br>
- fast, can be even faster<br>
- no meta compilers<br>
- direct control of which variables are special (e.g. the dive notes support LF)<br>
- direct control of template loading<br>
<br>
sometimes reinventing the wheel makes life easier. ;-)<br>
<br>
lubomir<br>
--<br>
<br>_______________________________________________<br>
subsurface mailing list<br>
<a href="mailto:subsurface@subsurface-divelog.org">subsurface@subsurface-divelog.org</a><br>
<a href="http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface" rel="noreferrer" target="_blank">http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface</a><br>
<br></blockquote></div><br></div></div>