Library of text templates in C ++ for formatting letters, reports

I am looking for an easy way to have text message / report templates, variables and variable element loops. For example:

Template:

The file list is created in __FOLDER__. It contains: \ n

[__ FILE_NAME __ \ t__FILESIZE __ \ n]

The program replaces the __FOLDER__ variable with the runtime value of this folder; and the files generated at runtime are put into the report using a loop over the pattern __FILENAME __ \ t__FILESIZE __ \ n.

Do you have an idea for a C ++ library or framework to help me. 10x

+3


source to share


1 answer


The often overlooked m4 macro (available on every Unix, and it looks like the Windows version is incredibly useful for this kind of thing too. Good docs here and here .



0


source







All Articles