RazorTemplateBase.RenderTemplate

Allows rendering a dynamic template from within the running template. The template passed must be a string and you can pass a model for rendering.

This is useful to support nested templating for allowing rendered values to contain embedded Razor template expressions which is useful where user generated content may contain Razor template logic.

public virtual string RenderTemplate(string template,
	object model)

Parameters

template

model


See also:

Class RazorTemplateBase

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