BaseTemplateKey tk = new NameOnlyTemplateKey("page", ResolveType.Include, new NameOnlyTemplateKey(null, ResolveType.Include, new NameOnlyTemplateKey()));
*.cshtmlfile with a
TextReaderand pass that into
Engine.Razor.RunCompile(). I feel there has to be a cleaner way of doing this, especially with all the classes I am seeing like
TemplateKeyetc... I just cant seem to find a good example of how to use one or all of these to automatically parse a template which i have created in my project. any help would be much appreciated!
contextneeds to be
nullfor at least some templates. The idea is that the
contextgets set by RazorEngine when an
innertemplate is resolved, but at the same time give you a possibility to pre-compile those templates.