Copyright © 2010-2013 Gregory ROMÉ Copyright © 2011 Mitsuhiro YOSHITANI
This plugin provides Wiki macros related to repositories.
Copyright (C) 2010-2013 Gregory ROMÉ Copyright (C) 2011 Mitsuhiro YOSHITANI This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
To include a repository file and format it:
{{repo_include(file_path)}} (1) {{repo_include(file_path, revision)}} {{repo_includewiki(file_path)}} (2) {{repo_includemd(file_path)}} (3)
-
file_path
is the file to include. -
Format the file as Textile.
-
Format the file as Markdown.
The macro must be extended for controlling if the Wiki format is applied or not. Moreover a code block could be also used for code inclusion. Maybe those options should be added by using another macro name.
Example of additional feature:
{{repo_include(file_path, revision, is_block)}}