class SAPO.Utility.Templating
replace in html {$var$} for values
Defined in Utility/Templating/0.1/lib.js

Function Summary
String|Boolean analizeTemplate (DOMElement|String template)
- function that checks the format of the template and gets the html for it
String|Boolean gen (String template, Object objectVars)
- makes the replace on the template
init()
constructor alias

Function Details

function analizeTemplate

String|Boolean analizeTemplate(DOMElement|String template)
- function that checks the format of the template and gets the html for it
Parameters:
template - DOMElement or the id of the DOMElement or an html string
Returns:
false id the template is not valid or the html string

function gen

String|Boolean gen(String template, Object objectVars)
- makes the replace on the template
Parameters:
template - html template to parse
objectVars - object with elements to replace
Returns:
false if template is not valid or if second param is not object

function init

init()
constructor alias