About This Rule Parse Configuration Keys Render Configuration Keys Description

About This Rule

<span style="color: red;">Warning:</span> This dangerous and powerful markup rule is disabled by default. If you enable it, careless use can compromise the security of your system.

Name include
Type macro
Syntax [[include path/to/script.php]]

Parse Configuration Keys

Key Type Description
base string The base path to your scripts directory

Render Configuration Keys

None.

Description

This rule will run a PHP script of your choosing, capture the output of that script, and place it in the source text. That output will then be subject to parsing by the remaining Text_Wiki rules and rendered appropriately.All your include-able scripts need to be in the same base directory path (although you can further organize that directory into subdirectories). You can set that base path with the ]] method:

 
// [snip] create a Text_Wiki object ($wiki)
$wiki->setParseConf('include', 'base', '/path/to/scripts/');
 
text_wiki/ruleinclude.txt · Last modified: 2008/09/16 11:49 (external edit)
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki