- body = body + '<div id="dashcontent-%d-%d" class="dashcontent-%d">\n' % (i,j,i)
- body = body + self.embedDashboard(controllerdashboard.url);
- body = body + '</div>\n';
+ body = body + '<script type="text/template" id="dashtemplate-%d-%d">\n%s\n</script>\n' % (i,j, self.embedDashboard(controllerdashboard.url));
+
+ body = body + '<div id="dashcontent-%d" class="dashcontent"></div>\n' % i