Concept Framework 2.2 documentation Contents | Index

WebTemplate

Name Version Deprecated
WebTemplate version 1.0 no

Defined in : WebTemplate.con
(this file must be included in your application in order to have access, unless you use a child class of WebTemplate that includes this file)

Require : web.service.template, standard.C.io

Description:
The HTML templates used by a Concept WEB Application. This is very similar to Smarty (that runs on PHP), but only with the basic features such as foreach, if, members access, arrays and some modifiers (the CTP documentation will be available soon). The result is intended to be outputted to the WebDocument object using the << operator.

CTP = Concept TemPlate


Properties:
Errors Gets the last errors
Result Access the result of the Generated template
TemplateContent Sets or gets the template content
TemplateFile Sets the template file (the ctp file)

Methods:
Bind Binds a template variable to a concept source one
Generate Generates the HTML content, and returns it as a string if no Errors were encountered
UnBind Unbinds a concept variable
WebTemplate This is the standard contructor for this class and should not be used directly




Documented by Eduard Suica, generation time: Sun Jan 27 18:15:12 2013 GMT(c)2013 Devronium Applications