1<?php
2/**
3 * The syntax plugin to handle <recipe> tags
4 *
5 */
6
7require_once(dirname(__FILE__).'/../conf.php');
8require_once(dirname(__FILE__).'/../lib/code_block.php');
9require_once DOKU_PLUGIN . 'syntax.php';
10require_once DOKU_INC . 'inc/common.php';
11
12class syntax_plugin_projects_recipe extends CodeBlock {
13    /**
14     * return some info
15     */
16    function getInfo(){
17    	$info = parent::getInfo();
18    	$info['date'] = '2010-12-16';
19    	$info['name'] = 'Project-file recipe Plugin';
20        $info['desc'] = 'display the recipe tag in a project file';
21        return $info;
22    }
23
24    function tag_name() { return 'recipe'; }
25
26	function language() { return 'bash'; }
27
28    protected function add_content($file, $content) {
29    	$file->add_recipe($content);
30    }
31}
32?>