Skip to content
UberSnip edited this page Dec 22, 2015 · 1 revision

Welcome to the UberSnip-Markup wiki!

Overview

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]

Array Tag

  The array tag allows you to create an array to store data. <array /> is the equivalent of array() in php.

Attribute 'name-set' OPTIONAL

    Adding the 'name-set' attribute creates a multi-dimension array of arrays provided in the 'name' tag

Attribute 'name' REQUIRED

    Adding the 'name' attribute will create an array with the given name. 
    Separate by comma to define multiple arrays.   
    $variable should be proceeded by $.

Attribute 'value' REQUIRED

    Adding the 'value' assigns a value to the array at the given index.
    You may assign a $variable, or 'text wrapped in single quotes'

Function Tag

  The function tag defines a function. <function name="foo" params="'$foo', '$foo2'" /> is the equivalent of function foo($foo, $foo2) in php.

Attribute 'name' REQUIRED

    Defines the function name.

Attribute 'params' OPTIONAL

    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'.

Var Tag

  The var tag defines a variable. <var name="foo" value="Variable Text" /> is the equivalent of function $foo = "Variable Text"; in php.

Attribute 'name' REQUIRED

    Defines the function name.

Attribute 'value' OPTIONAL

    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'.

Repeat Tag

  The repeat tag is a loop. <repeat condition="x"> is the equivalent of function while(x){}; in php.

Attribute 'condition' REQUIRED

    Defines the condition.

Call Tag

  The call tag executes a function. <call function="foo" /> is the equivalent of foo(); in php.

Attribute 'function' REQUIRED

    Defines the function name.

Attribute 'params' OPTIONAL

    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'.