Use doT template to render popup.