update template to allow dynamic partials