home
software
resumé
contact
Software: SSTP: Directives: SSTP-DEFFUNC

Usage:

SSTP-DEFFUNC name [variables]

SSTP-DEFFUNC begins a function definition. Any time the function is called using SSTP-FUNC, this code is executed, setting the variables specified to the arguments given when it is called.

SSTP-DEFFUNC should always be followed by SSTP-ENDFUNC.

Example:

The code:

<!--SSTP-DEFFUNC say_hello _hello-->
<a href="hello.thtml"><!--SSTP-WRITE _hello--></a>
<!--SSTP-ENDDEF-->
<!--SSTP-FUNC say_hello "Aloha!"-->
<!--SSTP-FUNC say_hello "Bonjour!"-->

Would output:

<a href="hello.thtml">Aloha!</a>
<a href="hello.thtml">Bonjour!</a>