Add renderTemplate function; Dropoply/webapp#187