Changes between Version 20 and Version 21 of IniGetMacro
- Timestamp:
- Nov 9, 2015, 11:24:49 AM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
IniGetMacro
v20 v21 9 9 The IniGetMacro package consists of two macros. The first, `IniGet`, returns as plain text the value of a [http://trac-hacks.org/wiki/TracIni trac.ini] configuration option. The `trac.ini` file is a simple flat-file database of sections and option/value pairs: 10 10 11 {{{ 12 #!ini 11 {{{#!ini 13 12 [section] 14 13 name = value … … 19 18 The second macro in the package is `Welcome`, and it returns a level 1 heading element in the following format: 20 19 21 {{{ 20 {{{#!html 22 21 <h1 id="welcome">Welcome to the project.name Project</h1> 23 22 }}} … … 31 30 Existing bugs and feature requests for IniGetMacro are [report:9?COMPONENT=IniGetMacro here]. 32 31 33 If you have any issues, create a [ http://trac-hacks.org/newticket?component=IniGetMacro&owner=dwcliftonnew ticket].32 If you have any issues, create a [/newticket?component=IniGetMacro new ticket]. 34 33 35 34 [[TicketQuery(component=IniGetMacro,group=type,format=progress)]] … … 37 36 == Download 38 37 39 Download the zipped source from [ download:inigetmacro here].38 Download the zipped source from [export:inigetmacro here]. 40 39 41 40 == Source 42 41 43 You can check out IniGetMacro from [ http://trac-hacks.org/svn/inigetmacro here] using Subversion, or [source:inigetmacro browse the source] with Trac.42 You can check out IniGetMacro from [/svn/inigetmacro here] using Subversion, or [source:inigetmacro browse the source] with Trac. 44 43 45 44 == Installation … … 47 46 Install this plugin using setup.py and copying the egg to the plugins directory: 48 47 49 {{{ 50 #!sh 48 {{{#!sh 51 49 python setup.py bdist_egg 52 50 cp dist/*.egg /trac/env/Project/plugins … … 55 53 Enable the macros in `/trac/env/Project/conf/trac.ini`: 56 54 57 {{{ 58 #!ini 55 {{{#!ini 59 56 [components] 60 57 iniget.* = enabled