Don't render the template in memory to avoid out of memory exceptions

Fixes #88
This commit is contained in:
Alexey Golub 2018-11-03 23:04:26 +02:00
parent d6507598fa
commit 94165dcd8d

View file

@ -52,8 +52,8 @@ namespace DiscordChatExporter.Core.Services
// Configure output // Configure output
context.PushOutput(new TextWriterOutput(output)); context.PushOutput(new TextWriterOutput(output));
// Render template // Render output
template.Render(context); context.Evaluate(template.Page);
} }
} }