Compile Method

HttpServer.dll

Compiles the specified args.

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

Syntax

C#
public TinyTemplate Compile(
	TemplateArguments args,
	string template,
	string templateId
)
Visual Basic (Declaration)
Public Function Compile ( _
	args As TemplateArguments, _
	template As String, _
	templateId As String _
) As TinyTemplate
Visual C++
public:
TinyTemplate^ Compile(
	TemplateArguments^ args, 
	String^ template, 
	String^ templateId
)

Parameters

args
Type: HttpServer.Rendering..::.TemplateArguments
Arguments, should contain "name, value, name, value" etc.
template
Type: System..::.String
c# code that will be included in the generated template class
templateId
Type: System..::.String
Id of the template class

Return Value

Tiny template if successful; otherwise null.

Exceptions

ExceptionCondition
HttpServer.Rendering..::.CompileExceptionIf compilation fails
System..::.ArgumentExceptionIf args are incorrect

See Also