added erubis for templates.