rewrite template engine completely
authorPhil Sutter <phil@nwl.cc>
Mon, 8 Dec 2008 23:07:32 +0000 (00:07 +0100)
committerPhil Sutter <phil@nwl.cc>
Thu, 11 Dec 2008 14:28:21 +0000 (15:28 +0100)
commitf96e77c91beeb58e1ed781d57d4c3ba0f2f4eb81
treedabf37c3f6a0b3cb75e833a26765c593298623c8
parent5a69344055067375aeb6ab25c52c6af6e6ef7d14
rewrite template engine completely

Two things that pissed me off about the old one:
* only limited support for nesting templates
* totally broken output when using conditionals inside a template

The later one was the hard one to fix. ;)
It requires to already have the full text substituted before the text
objects are being created from it. Generating only the contained objects
broke, because the conditionals got wrong offsets to jump to.

After that was fixed, full nesting support is realised by simply
repeating the replacement until no more template objects are found.
src/conky.c