Lina is a Python 3 based template engine similar to google-ctemplate. It is designed for generation of well-formatted C++ code, but can be also used for Python and other languages. Unlike other template systems, Lina focuses on fast & safe execution and does not allow embedding logic into the templates.

The library is available through PyPI. If you are using pip, you can install it using:

pip install lina

The source code can be retrieved from the public repository. Documentation is available at


This project is no longer developed, but it's still under maintenance. On request, bug fixes and other improvements will be implemented. Please use the project's issue tracker to report problems or ask for new features.

This project is production-ready. The code is well tested, and has shown it's robustness in day-to-day usage.