1<?php
2/**
3 * Imageflow Plugin
4 *
5 * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
6 * @author     i-net software <tools@inetsoftware.de>
7 * @author     Gerry Weissbach <gweissbach@inetsoftware.de>
8 */
9
10// must be run within Dokuwiki
11if(!defined('DOKU_INC')) die();
12if (!defined('DOKU_PLUGIN')) define('DOKU_PLUGIN',DOKU_INC.'lib/plugins/');
13
14require_once(DOKU_PLUGIN.'syntax.php');
15
16class syntax_plugin_pagetemplater extends DokuWiki_Syntax_Plugin {
17
18    function getType() { return 'substition'; }
19    function getPType() { return 'block'; }
20    function getSort() { return 30; }
21
22    function connectTo($mode) {
23        $this->Lexer->addSpecialPattern('@@CONTENT@@', $mode, 'plugin_pagetemplater');
24    }
25
26    function handle($match, $state, $pos, Doku_Handler $handler) {
27
28        return true;
29    }
30
31    function render($mode, Doku_Renderer $renderer, $data) {
32        $renderer->doc .= "@@CONTENT@@";
33        return true;
34    }
35}
36// vim:ts=4:sw=4:et:enc=utf-8:
37