Text-templating library for C++

  • Thread starter Przemyslaw Wegrzyn
  • Start date
P

Przemyslaw Wegrzyn

Hi !

Does anybody know any good, open-source library similar to Perl's
Template or Jakarta Velocity ?

Best Regards,
Przemyslaw
 
P

Przemyslaw Wegrzyn

Does anybody know any good, open-source library similar to Perl's

Hmm, it is one alternative, but for my needs it's overcomplicated,
compared to simple templating toolkits. I don't like XSLT too much.

Best Regards,
Przemyslaw
 
C

Cedric LEMAIRE

Does anybody know any good, open-source library similar to Perl's
Template or Jakarta Velocity ?

You can try CodeWorker, a parsing tool and a source code generator,
freely available at "http://www.codeworker.org". A template-based
script expresses the code generation patterns.

The interpreter is written in C++, and you can link your C++
application with the CodeWorker's library or translate your
CodeWorker's scripts to C++, via the command-line switch '-c++'.

As for Velocity (but in the C++ world), you can populate your CW's
templates with the data coming from your C++ application. To do that,
you just have to build a 'CodeWorker::CppParsingTree' data structure
(header file = "CppParsingTree.h").

Tell me if you need more details.
 
V

Vaclav Blazek

Hi !

Does anybody know any good, open-source library similar to Perl's
Template or Jakarta Velocity ?

Best Regards,
Przemyslaw

Hello,

I suggest you our templating engine -- Teng
<http://sourceforge.net/projects/teng/>. Teng is almost standard C++
library with very simple interface (almost due to use of just one
posix function).

Primary purpose of teng is web page generation but it can be used for
any kind of text (emails, sources etc). Templates are cached. Template
can be broken to separate files. You can use language dictionaries for
multilingual output.

Project documentation is in progress but I can send you first draft of
manual.

Best regards,

Vaclav Blazek
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top