remove unused var tmpl in registerPartial