Basically, you can put %expand% at the top of any page, and then add
This will include the file.
You can also write data to your %data-dir% directory, process forms and build databases.
The security implications are similar to PHP's safe-mode, or SSI in general. You can use the shebang'ed version for added security and to gain access to more features, like %exec.