Class SpazTemplate

SpazTemplate

Defined in: spaztemplate.js.

Class Summary
Constructor Attributes Constructor Name and Description
 

SpazTemplate designed for fast templating functions

Method Summary
Method Attributes Method Name and Description
 
addTemplateMethod(string, method)

 
parseArray(string, array)

 
parseTemplate(string, mixed)

Class Detail

SpazTemplate()

SpazTemplate designed for fast templating functions

Method Detail

addTemplateMethod(string, method)

Parameters:
string
name the name to call the method with in parseTemplate
method
function the template methid. Should take one param for input data, returns string

parseArray(string, array)

Parameters:
string
methodname the template method to call
array
data_array an array of objects to pass to the template method return string

parseTemplate(string, mixed)

Parameters:
string
methodname the template method to call.
mixed
data data to be used by the template method
Returns:
string;