Repository navigation
Home
UberSnip edited this page Dec 22, 2015
·
1 revision
Welcome to the UberSnip-Markup wiki!
UberSnip-Markup Tags
<array /> : Attributes [name-set, name, value]
<function></function> : Attributes [name, params]
<var /> : Attributes [name, value]
<repeat></repeat> : Attributes [condition]
<call /> : Attributes [function, params]
The array tag allows you to create an array to store data. <array /> is the equivalent of array() in php.
Adding the 'name-set' attribute creates a multi-dimension array of arrays provided in the 'name' tag
Adding the 'name' attribute will create an array with the given name.
Separate by comma to define multiple arrays.
$variable should be proceeded by $.
Adding the 'value' assigns a value to the array at the given index.
You may assign a $variable, or 'text wrapped in single quotes'
The function tag defines a function. <function name="foo" params="'$foo', '$foo2'" /> is the equivalent of function foo($foo, $foo2) in php.
Defines the function name.
Adding the 'params' attribute will setup function parameters.
Separate by comma to define multiple parameters.
$variable should be proceeded by $, and surrounded with '$single_quotes'.
The var tag defines a variable. <var name="foo" value="Variable Text" /> is the equivalent of function $foo = "Variable Text"; in php.
Defines the function name.
Adding the 'params' attribute will setup function parameters.
Separate by comma to define multiple parameters.
$variable should be proceeded by $, and surrounded with '$single_quotes'.
The repeat tag is a loop. <repeat condition="x"> is the equivalent of function while(x){}; in php.
Defines the condition.
The call tag executes a function. <call function="foo" /> is the equivalent of foo(); in php.
Defines the function name.
Adding the 'params' attribute will setup function parameters.
Separate by comma to define multiple parameters.
$variable should be proceeded by $, and surrounded with '$single_quotes'.