Version 4 (modified by 15 years ago) (diff) | ,
---|
Trac.ini [section].option Macro
Notice: This plugin is unmaintained and available for adoption.
Description
The IniGetMacro package consists of two macros. The first, IniGet, returns as plain text the value of a trac.ini configuration option. The trac.ini
file is a simple database of sections and option/value pairs:
[section] name = value
By calling the macro like so: [[IniGet(section.name)]]
, it returns the value.
If no option matches, it returns an error message. Some option names themselves
contain periods, this is supported.
The second macro in the package is Welcome, and it returns a level 1 heading element in the following format:
<h1 id="welcome">Welcome to the project.name Project</h1>
Where project.name is dynamically inserted in the same manner as IniGet.
These macros are useful for WikiStart project templates.
Bugs/Feature Requests
Existing bugs and feature requests for IniGetMacro are here.
If you have any issues, create a new ticket.
Download
Download the zipped source from here.
Source
Browse the source: http://github.com/dwclifton/tracinigetmacro/tree/master
Public clone URL:
git clone git://github.com/dwclifton/tracinigetmacro.git
Example
[[Welcome]] The [[IniGet(project.name)]] project consists of a...
Recent Changes
- 17559 by rjollos on 2019-11-17 18:54:13
-
Import
tag
from Trac rather than Genshi
- 15264 by rjollos on 2016-02-11 04:22:34
-
Remove unnecessary svn:mime-type on py files
svn:mime-type was set to "plain" for many files.
- 12210 by rjollos on 2012-10-19 01:16:30
-
Updated README with contents of trac-hacks wiki page.
(more)
Author/Contributors
Author: dwclifton
Contributors: