Add renderTemplate function; Dropoly/webapp#187