2 using PdfService.Models;
4 namespace PdfService.Utility
6 public static class TemplateGenerator
8 public static string GetHTMLString(Tweet[] tweets)
10 var sb = new StringBuilder();
16 <section class='hero is-info'>
17 <div class='hero-body' style='padding-left:3em'>
18 <div class='container'>
20 Tweet Sentiment Analysis
28 <div class='notification'>
29 Generated report only contains mocked data. Will be changed later.
31 <div class='container' style='margin-left:3em'>
35 foreach (var tweet in tweets)
37 sb.AppendFormat(@"<div class='container' style='margin-top:3em;'>
38 <p class='title is-5'>{0}</p>
42 </div>", tweet.Name, tweet.Sentiment);