1
Why there are much HTML tags in my code?
2
The answer is simple: google-ctemplate.
3
Google-ctemplate is not designed to have a full-featured templating language
4
it only has simple constructs and therefore we must keep stuff inside our code.
5
However, when I first looked for a C++ template engine I only found google-ctemplate.
6
If you want to suggest a better alternative let me know:
8
lvillani AT binaryhelix DOT net
11
jstaniek (2008-06-09):
12
We're limited to C++, and there apparently are no many templates: http://en.wikipedia.org/wiki/Template_engine_(web)
13
There's http://reki.ru/products/ctpp/ but I am not sure it's worth switching.
15
lvillani (2008-11-19):
16
Ok, that is nasty, just discovered that the official ctemplate packages put headers in /usr/include/google but
17
distributors (Fedora, at least) decided to put them in /usr/include/ctemplate.
18
A brutal work-around would be detecting if we have headers installed in /usr/include/google or in
19
/usr/include/ctemplate and include them in our headers using a prefix'ed variable.