Skip to content

Commit 0df5b25

Browse files
authored
Add raw HTML to context for access by plugins (#58)
1 parent 902f36f commit 0df5b25

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Blake.BuildTools/BlakeContext.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,4 @@ public class BlakeContext
4545
}
4646

4747
public record MarkdownPage(string MdPath, string TemplatePath, string Slug, string RawMarkdown);
48-
public record GeneratedPage(PageModel Page, string OutputPath, string RazorHtml);
48+
public record GeneratedPage(PageModel Page, string OutputPath, string RazorHtml, string RawHtml);

src/Blake.BuildTools/Generator/SiteGenerator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ private static async Task BakeContent(
337337

338338
logger.LogInformation("✅ Generated page: {OutputPath}", outputPath);
339339

340-
context.GeneratedPages.Add(new GeneratedPage(page, outputPath, generatedRazor));
340+
context.GeneratedPages.Add(new GeneratedPage(page, outputPath, generatedRazor, renderedHtml));
341341
}
342342
catch (Exception e)
343343
{

0 commit comments

Comments
 (0)