RazorStringHostContainer<TBaseTemplate>.RenderTemplateToFile

Renders a template from a string input to a file output. Same text templates are compiled and cached for re-use.

public bool RenderTemplateToFile(string templateText,
	object model,
	string outputFile,
	bool inferModelType)

Parameters

templateText
Text of the template to run

model
Optional model to pass

outputFile
Output file where output is sent to

inferModelType
If true infers the model type if no @model or @inherits tag is provided


See also:

Class RazorStringHostContainer

© West Wind Technologies, 2018 • Updated: 06/07/18
Comment or report problem with topic