Changes between Version 6 and Version 7 of ArbitraryOptionsPlugin


Ignore:
Timestamp:
Aug 25, 2015, 12:44:18 PM (9 years ago)
Author:
figaro
Comment:

Cosmetic changes

Legend:

Unmodified
Added
Removed
Modified
  • ArbitraryOptionsPlugin

    v6 v7  
    1 = Arbitrary Options Plugin =
     1[[PageOutline(2-5,Contents,pullout)]]
    22
    3 == Description ==
     3= Arbitrary Options Plugin
    44
    5 Pass arbitrary options from conf.ini's to templates in Trac.
     5== Description
    66
    7 You put whatever options you'd like in a [project_info] stanza inside your trac's .ini file. These are passed to the template as key-value pairs inside the dictionary 'project_info'.
     7This plugin allows you to pass arbitrary options from conf.ini's to templates in Trac.
     8
     9You put whatever options you'd like in a [project_info] stanza inside your Trac's .ini file. These are passed to the template as key-value pairs inside the dictionary 'project_info'.
    810
    911You can also access data for other projects in your trac env under the list 'projects'. That list will have a dictionary with keys 'name', 'description', 'href', and 'info', where the first three are the same as in a project list, and the 'info' is the dictionary of arbitrary options you've passed for that project.
     
    1113You can do this for your project listing page too, using the ArbitraryProjectPropertiesPatch.
    1214
    13 Note that this is only implemented for Genshi right now, but there's no reason you couldn't add a line or two for !ClearSilver, I just didn't have a way to test it.
     15Note that this is only implemented for Genshi right now, but you could add a line or two for !ClearSilver, although this is untested.
    1416
    15 === Examples ===
     17== Bugs/Feature Requests
    1618
    17 If your .ini had this:
     19Existing bugs and feature requests for ArbitraryOptionsPlugin are
     20[report:9?COMPONENT=ArbitraryOptionsPlugin here].
    1821
     22If you have any issues, create a
     23[/newticket?component=ArbitraryOptionsPlugin new ticket].
     24
     25[[TicketQuery(component=ArbitraryOptionsPlugin&group=type,format=progress)]]
     26
     27== Download
     28
     29Download the zipped source from [download:arbitraryoptionsplugin here].
     30
     31You can also just run:
    1932{{{
    20 #!ini
     33easy_install TracArbitraryOptionsPlugin
     34}}}
     35
     36== Source
     37
     38You can check out ArbitraryOptionsPlugin from [http://trac-hacks.org/svn/arbitraryoptionsplugin here] using Subversion, or [source:arbitraryoptionsplugin browse the source] with Trac.
     39
     40== Installation
     41
     42General instructions on installing Trac plugins can be found on the [TracPlugins#InstallingaTracplugin TracPlugins] page.
     43
     44== Example
     45
     46If your `trac.ini` file had this:
     47
     48{{{#!ini
    2149[project_info]
    2250short_name = my_project
     
    2856
    2957{{{
    30 Short name is ${project_info.get('short_name')}. Status is ${project_info.get('status')}.  Order is ${project_info.get('order')}.
     58Short name is ${project_info.get('short_name')}. Status is ${project_info.get('status')}. Order is ${project_info.get('order')}.
    3159}}}
    3260
     
    4270See http://projects.icapsid.net/adjector for a usage example.
    4371
    44 == Bugs/Feature Requests ==
    45 
    46 Existing bugs and feature requests for ArbitraryOptionsPlugin are
    47 [report:9?COMPONENT=ArbitraryOptionsPlugin here].
    48 
    49 If you have any issues, create a
    50 [http://trac-hacks.org/newticket?component=ArbitraryOptionsPlugin&owner=david new ticket].
    51 
    52 == Download ==
    53 
    54 Download the zipped source from [download:arbitraryoptionsplugin here].
    55 
    56 You can also just run:
    57 {{{
    58 easy_install TracArbitraryOptionsPlugin
    59 }}}
    60 
    61 == Source ==
    62 
    63 You can check out ArbitraryOptionsPlugin from [http://trac-hacks.org/svn/arbitraryoptionsplugin here] using Subversion, or [source:arbitraryoptionsplugin browse the source] with Trac.
    64 
    65 == Recent Changes ==
     72== Recent Changes
    6673
    6774[[ChangeLog(arbitraryoptionsplugin, 3)]]
    6875
    69 == Author/Contributors ==
     76== Author/Contributors
    7077
    7178'''Author:''' [wiki:david] [[BR]]
    72 '''Maintainer:''' [wiki:david] [[BR]]
     79'''Maintainer:''' [[Maintainer]] [[BR]]
    7380'''Contributors:'''