void functionToString(
object token
$element)
|
|
Handler for User defined functions in templates..
<flexy:function name="xxxxx">.... </flexy:block> // equivilant to function xxxxx() { <flexy:function call="{xxxxx}">.... </flexy:block> // equivilant to function {$xxxxx}() { <flexy:function call="xxxxx">.... </flexy:block> // equivilant to function {$xxxxx}() {
This will not handle nested blocks initially!! (and may cause even more problems with if /foreach stuff..!!
Parameters:
void includeToString(
$element)
|
|
include handler
<flexy:include src="test.html"> <flexy:include src="{test}"> <flexy:include src="{test}.html">
or include without parsing (does not support {xxx} args ) <flexy:include src="test.html" type="raw">
or to include a file as a js value = used by javascript templates <flexy:include src="test.html" type="json" name="my_js_variable">
Parameters:
void partialToString(
$element)
|
|
- A partial is a subtemplate to which you can pass variables.
- You can define variables for the partial as xml attributes
- You can provide context for the variables by adhering to the
convention 'subtemplateVarName="templateVarName"'
- See example below:
<flexy:partial src="test.html" subtemplateVar1="var1" subtemplateVar2="object.var2" subtemplateVar3="#literal1#" />
Parameters:
toString - display tag, attributes, postfix and any code in attributes.
Relays into namspace::method to get results..
Parameters: