add partial template support.