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
14class syntax_plugin_pagetemplater extends DokuWiki_Syntax_Plugin {
15
16    function getType() { return 'substition'; }
17    function getPType() { return 'block'; }
18    function getSort() { return 30; }
19
20    function connectTo($mode) {
21        $this->Lexer->addSpecialPattern('@@CONTENT@@', $mode, 'plugin_pagetemplater');
22    }
23
24    function handle($match, $state, $pos, Doku_Handler $handler) {
25
26        return true;
27    }
28
29    function render($mode, Doku_Renderer $renderer, $data) {
30        $renderer->doc .= "@@CONTENT@@";
31        return true;
32    }
33}
34// vim:ts=4:sw=4:et:enc=utf-8:
35