Ejemplo n.º 1
0
 public string CreateHtml(SlideTemplateContent content)
 {
     return TemplateContent.Replace("##CONTENT##", content.Content)
         .Replace("##PREVIOUS_FILE##", content.PreviousSlideFileName)
         .Replace("##NEXT_FILE##", content.NextSlideFileName)
         .Replace("##PREVIOUS_TITLE##", content.PreviousSlideTitle)
         .Replace("##NEXT_TITLE##", content.NextSlideTitle);
 }
Ejemplo n.º 2
0
 public void SetUp()
 {
     _templateContent = new SlideTemplateContent
         {
             PreviousSlideFileName = "previous file name",
             NextSlideFileName = "next file name",
             PreviousSlideTitle = "previous title",
             NextSlideTitle = "next title"
         };
 }
Ejemplo n.º 3
0
 public string ToHtml(SlideTemplate template, SlideTemplateContent templateContent)
 {
     templateContent.Content = Body;
     return template.CreateHtml(templateContent)
         .Replace("<code>", "<code class=\"prettyprint\">");
 }