Stitch lets you keep your templates and pages neatly separated from each other in different files. It dynamically stitches the template and page together, and keeps the runtime overhead to a minimum as compared to most templating engines.
Eigen is a C++ template library for linear algebra: vectors, matrices, and related algorithms. It is versatile, fast, elegant and works on many platforms.