CamlTemplate is a library for generating text from templates in Objective Caml. It can be used to generate Web pages, scripts, SQL queries, XML documents, and other sorts of text files. It provides a versatile, easy-to-learn template syntax that supports common scripting-language constructs, while encouraging a separation between presentation logic and application logic. The supported Caml data structures accomodate lists, tables, and trees of items in a straightforward manner. CamlTemplate works well with mod_caml and mod_fastcgi, supports any ASCII-compatible encoding, including UTF-8, and includes optional support for multithreading.