*/ class syntax_plugin_yatp_includeonly extends SyntaxPlugin { /** @inheritDoc */ public function getType() { return 'container'; } /** @inheritDoc */ public function getPType() { return 'normal'; } /** @inheritDoc */ public function getSort() { return 302; } /** @inheritDoc */ public function connectTo($mode) { $this->Lexer->addSpecialPattern('.*?', $mode, 'plugin_yatp_includeonly'); } /** @inheritDoc */ public function handle($match, $state, $pos, Doku_Handler $handler) { return ''; } /** @inheritDoc */ public function render($mode, Doku_Renderer $renderer, $data) { if ($mode !== 'xhtml' || !$data) { return false; } return true; } }