web.service.template.TCompile

TCompile is available since version 1.0.

Prototype:

number TCompile(string template_content[, number template_context])

Parameters

template_content
the template content. Usually is the result of ReadFile("template.ctp")
template_context
the template context, as returned by NewTemplateContext

Description:

Compiles the template file. Prior to calling this function, one must link all the variables in the template with concept variables using TBind.

Return value:

Returns 0 if succeeded or -1 if failed. If failed, you can call {TErors} to retrieve the error text.