RazorEngine<TBaseTemplateType>.RenderTemplateFromAssembly

Executes a template based on a previously compiled and cached assembly reference. This effectively allows you to cache an assembly.

public string RenderTemplateFromAssembly(string assemblyId,
	object model,
	TextWriter outputWriter,
	string generatedNamespace,
	string generatedClass)

Return Value

output from template. If an outputWriter is passed in result is string.Empty on success, null on failure

Parameters

assemblyId
model

outputWriter
A text writer that receives output generated by the template. Writer is closed after rendering.

generatedNamespace

generatedClass


See also:

Class RazorEngine

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