From 94165dcd8daa3d282b194306584c37872cee154e Mon Sep 17 00:00:00 2001 From: Alexey Golub Date: Sat, 3 Nov 2018 23:04:26 +0200 Subject: [PATCH] Don't render the template in memory to avoid out of memory exceptions Fixes #88 --- DiscordChatExporter.Core/Services/ExportService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DiscordChatExporter.Core/Services/ExportService.cs b/DiscordChatExporter.Core/Services/ExportService.cs index 1e1a352..c3604e7 100644 --- a/DiscordChatExporter.Core/Services/ExportService.cs +++ b/DiscordChatExporter.Core/Services/ExportService.cs @@ -52,8 +52,8 @@ namespace DiscordChatExporter.Core.Services // Configure output context.PushOutput(new TextWriterOutput(output)); - // Render template - template.Render(context); + // Render output + context.Evaluate(template.Page); } }