CTPL − C Template (Parser) Library

CTPL's homepage

CTPL is a template engine library written in C and distributed under the terms of the GNU GPLv3+. See the overview in the documentation for a more complete description.

Release highlights

Here the highlights of each release. For a complete list of changes, please read the Git history.

Getting CTPL

Release tarballs

The release tarballs (source code) can be found on the download area. The latest version is CTPL 0.3.3.

The PGP key used to create the signatures can be found here.

MS Windows binaries

There is also a binary package for MS Windows containing the library, all the development files and the documentation (but not the dependencies — libglib-2.0 and libgio-2.0). The latest version is ctpl-0.3.2-win32.zip and it was built against GLib 2.20.1.

Development repository

CTPL uses Git; you can browse the repository online at http://git.tuxfamily.org/ctpl/ctpl/.

Getting the source code is a matter of cloning. As an anonymous user:

git clone git://git.tuxfamily.org/gitroot/ctpl/ctpl.git

or if you have an account on TuxFamily, as a logged user:

git clone ssh://user@git.tuxfamily.org/gitroot/ctpl/ctpl.git

Building CTPL

CTPL uses the well-known GLib library and its sub-module GIO. You need it properly installed on your system in order to be able to build CTPL.

CTPL uses the well-known Autotools build system, and therefore its compilation process is quite common:

./configure # configure the library
make # compile the library
make install # install the library

If you are using the Git version, you need to run the provided autogen.sh script to set up the build environment before running the above build commands:



Documentation can be either built from source using GtkDoc, or browsed online on this site.

Reporting bugs

Please report any bug you find! The site currently misses a bug tracker, but please report bugs by e-mail to the bug-report-address at the top of the configure.ac file in the source tree.

As we are geek or we are not, here is a pretty command to get the address I talk about (to be run from the root of the source tree):

sed -n -r '/^AC_INIT/{:r;s/^.*\[(.*@.*)\].*$/\1/;t o;n;b r;:o;p;q}' configure.ac