Added ability to use params in template.