Hide
Easily highlight source code for your blog with our Syntax Highlighter. Join Siafoo Now or Learn More

Pass arbitrary options from conf.ini to templates in Trac

Revision 1 vs. Revision 2

Changelog: added a bit about the patch

Legend:

Unmodified
Added
Removed
  • Description

    r1 r2  
    2222Note that this isn't implemented for clearsilver templates, but there's no reason it couldn't be.  If you'd like a usage example head over to http://projects.icapsid.net.  
    2323  
    2424Project Lists  
    2525-------------  
    2626You can include arbitrary per-project info inside your `project list page <http://trac.edgewall.org/wiki/TracInterfaceCustomization#ProjectList>`_, too.  However trac doesn't call plugins when generating this page, so you'll have to apply the patch :snippet:`260`.  Note that the top half isn't strictly necessary, as this plugin does the same thing, but this way nothing will crash if you *don't* have the plugin installed.  
     27  
     28In the project list you access each project's info as ``project.info``.  
    2729  
    2830Download  
    2931--------  
    3032For the time being, you can `download the entire plugin <http://crew.icapsid.net/david/downloads/projects/tracarbitraryoptionsplugin.tar.bz2>`_.  
    3133