Rendering to template in html source with data-attributes