optimized web.template to use data attributes, default values are empty string and compiled using doT