Template engine library