These are chat archives for Antaris/RazorEngine

21st
Nov 2015
Matthias Dittrich
@matthid
Nov 21 2015 13:13
@mpbill Well you normally don't create TemplateKey instances yourself, those should be created by the TemplateManager. The manager and the IRazorEngineService provide APIs for this. More documentation can be found here: https://antaris.github.io/RazorEngine/TemplateManager.html. NOTE: context needs to be null for at least some templates. The idea is that the context gets set by RazorEngine when an inner template is resolved, but at the same time give you a possibility to pre-compile those templates.