Allow getTemplateParams to pull the paramets out of a template object, as well as a template string