Version 1 (modified by dwclifton, 6 years ago) (diff)

New hack IniGetMacro, created by dwclifton

Trac.ini [section].option Macro


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:

name = value

By calling the macro like so: [[IniGet(]], 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</h1>

Where 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 the zipped source from here.


You can check out IniGetMacro from here using Subversion, or browse the source with Trac.



The [[IniGet(]] project consists of a...

Recent Changes

[12210] by rjollos on 2012-10-19 03:16:30
Updated README with contents of trac-hacks wiki page.
[12209] by rjollos on 2012-10-19 03:12:14
Fixes #6039: Added documentation to macros. Updated README with contents of trac-hacks page. Imported the IniGet macro from GitHub.
[12208] by rjollos on 2012-10-19 02:53:32
Removed the empty 0.11 directory.


Author: dwclifton