render method

String render(
  1. Report report
)

Implementation

String render(Report report) {
  final buf = StringBuffer();
  buf.write('<!doctype html>\n');
  buf.write('<html lang="en">\n');
  buf.write(_head(report.projectName));
  buf.write('<body>\n<div class="wrap">\n');
  buf.write(_cover(report));
  buf.write(_executiveSummary(report));
  buf.write(_scoresCard(report));
  buf.write(_findingsByCategory(report));
  buf.write(_topIssues(report));
  buf.write(_appendix(report));
  buf.write(_footer(report));
  buf.write('</div>\n</body>\n</html>\n');
  return buf.toString();
}