lightweight template engine based on c++