Add renderTemplate function; Dropoply/webapp#187

Add renderTemplate method