Concept Framework 2.0 documentation Contents | Index

web.service.template.TCompile

Name Version Deprecated
TCompile version 1.0 no

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.

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

Documented by Eduard Suica, generation time: Fri Jan 21 18:06:21 2011 GMT(c)2011 RadGs Software