diff options
author | Kevin Chabowski <kevin@kch42.de> | 2012-06-27 21:09:07 +0200 |
---|---|---|
committer | Kevin Chabowski <kevin@kch42.de> | 2012-06-27 21:09:07 +0200 |
commit | d0b7317e10254490acbe748d1d8c1e04aaf8be6b (patch) | |
tree | 19d484bee311b488aa75212ce0f31d6ae29b4308 /docu/language_definition.html | |
parent | 06eea058aac1b3edbd526474ce71bfe47194fb46 (diff) | |
download | ste-d0b7317e10254490acbe748d1d8c1e04aaf8be6b.tar.gz ste-d0b7317e10254490acbe748d1d8c1e04aaf8be6b.tar.bz2 ste-d0b7317e10254490acbe748d1d8c1e04aaf8be6b.zip |
Added new Tags to the standard library.
* ste:in_array checks, if a value is in an array
* ste:join joins an array with a glue string
* ste:split splits a string with a delimiter to an array
* ste:array_add adds an element to an array.
Diffstat (limited to 'docu/language_definition.html')
-rw-r--r-- | docu/language_definition.html | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/docu/language_definition.html b/docu/language_definition.html index c4dd98b..4cf4aaf 100644 --- a/docu/language_definition.html +++ b/docu/language_definition.html @@ -77,6 +77,10 @@ <li><a href="#stdlib_inc">ste:inc</a></li> <li><a href="#stdlib_dec">ste:dec</a></li> <li><a href="#stdlib_date">ste:date</a></li> + <li><a href="#stdlib_in_array">ste:in_array</a></li> + <li><a href="#stdlib_join">ste:join</a></li> + <li><a href="#stdlib_split">ste:split</a></li> + <li><a href="#stdlib_array_add">ste:array_add</a></li> </ol> </li> </ol> @@ -498,5 +502,20 @@ Result:<br /> <code><pre>18. Sep. 2011, 16:49:20</pre></code> </p> + + <h3 id="stdlib_in_array">ste:in_array</h3> + <p>Check, if a value is in an array. The tag takes the variable name of the array by parameter <code>array</code>.The value to test with will be taken from the tags content.</p> + <p>Returns empty text, if the value is not in the array, otherwise a non-empty text.</p> + + <h3 id="stdlib_join">ste:join</h3> + <p>Join parts of an array together. The array's variable name goes to the <code>array</code> parameter. The tag's content will be used as the glue, i.e. this will be between two elements.</p> + <p>Returns the joined array</p> + + <h3 id="stdlib_split">ste:split</h3> + <p>Split a text and write the parts to an array. The <code>array</code> parameter takes the variable name of the resulting array, the <code>delim</code> parameter the text to split by. The tag's content will be the text to split.</p> + + <h3 id="stdlib_array_add">ste:array_add</h3> + <p>Adding an element to an array. The <code>array</code> parameter takes the variable name of the array. The <code>key</code> parameter takes the array key to map the value to, if omitted, the value will be appended to the end of the array. The value is the tag's content.</p> + </body> </html> |