Hello,
I am looking for a template engine similar to freemaker in Java. It does not have to do complecated stuff. It only has to be fast. I had a look into CTPP2 and even managed to install it, but for the love of God, everything is in Russian there and I have no examples to work with. So if you know how to use CTPP2 or any other template engine, let me know pls.
I am looking for a template engine
Re: I am looking for a template engine
Hi,
Do you have a link to Russian documentation?
Also if you Google "ctpp2 documentation" - what will you get?
Thank you.
Do you have a link to Russian documentation?
Also if you Google "ctpp2 documentation" - what will you get?
Thank you.
Re: I am looking for a template engine
Hello, Onyyman, I found a documentation here http://ctpp.havoc.ru/doc/en/ with a code exaple at the bottom and some other example here http://ctpp.havoc.ru/helloworld_cpp.html but I couldn't compile it like in the example. From the english docu I can do the first compilation to get the o file.
But the second compilation (dynamic or static) leads to an error:
If someone would be so kind to help me to get this compiled this is how you can instlal it.
This is how you can compile the provided example files in tpp2-2.8.3/tests....the examples in the documentation are verry outdated. Dynamic linking does not work though, don't know why.
Code: Select all
gcc -c test_3_1.cpp -I /usr/local/include/ctpp
Code: Select all
/usr/bin/ld: cannot find -lctpp
- Download with wget, since direct download results in a corrupt file for some reason
Code: Select all
wget http://ctpp.havoc.ru/download/ctpp2-2.8.3.tar.gz
- Open the file and include
Code: Select all
ctpp2-2.8.3/src/CTPP2FileSourceLoader.cpp
else the following won't be successfulCode: Select all
#include <unistd.h>
Code: Select all
cmake .
Code: Select all
make
Code: Select all
sudo make install
Code: Select all
gcc HashTest.cpp -o test -I /usr/local/include/ctpp2/ -L /usr/local/lib/ -lctpp2 -lstdc++