partial templating system