wiki:NewHackMacro

Version 2 (modified by athomas, 9 years ago) (diff)

Added list of requirements

Create new hack infrastructure

Description

The NewHackMacro creates the infrastructure for a new hack on the TracHacks site.

It creates Subversion paths along with write permissions, adds a new component for the hack, and finally creates a wiki page based on a template wiki page (NewHackTemplate on this installation). The variables in that page are expanded by NewHackMacro.

Disclaimer

NewHackMacro is not meant to be used outside TracHacks. Paths are hard-coded into the Macro, it is not cleanly designed, etc. Modification will be required for it to work correctly on a different site.

Requirements

  1. The tags hack.
  2. Pages tagged with type will be displayed as the list of types (eg. macro)
  3. Pages tagged with release will be displayed as the list of releases (eg. stable?)
  4. Other tags not tagged with metatag will be displayed in the list of additional tags (eg. user pages will not be displayed, as user is a metatag)

Bugs/Feature Requests

Existing bugs and feature requests for NewHackMacro are here.

If you have any issues, create a new ticket.

Download

NewHackMacro for 0.8.

Source

You can check out the source for NewHackMacro from Subversion at http://trac-hacks.swapoff.org/svn/newhackmacro.

Example

Usage is simple:

[[NewHack(NewHackTemplate)]]

The page should be locked.

Author/Contributors

Author: athomas
Contributors:

TagIt(macro,athomas,example,unsupported,0.8)?