add data-ride attribute to template