partial now takes an array of template variables as a parameter