add renderTemplate in Templating trait