RenderLayout Method

HttpServer.dll

renders one of the layouts

Namespace:  HttpServer.Controllers
Assembly:  HttpServer (in HttpServer.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#
protected virtual string RenderLayout(
	string layoutName,
	string contents
)
Visual Basic (Declaration)
Protected Overridable Function RenderLayout ( _
	layoutName As String, _
	contents As String _
) As String
Visual C++
protected:
virtual String^ RenderLayout(
	String^ layoutName, 
	String^ contents
)

Parameters

layoutName
Type: System..::.String
layout to render (should be found in the "views\\layouts" folder).
contents
Type: System..::.String
contents will be put in the template variable called "text".

Return Value

generated text/html.

See Also