[#2141] Update @macro decorator to include an optional context arg

To use with macros, change all @macro to @macro(). To restrict the expansion
of the macro to only occur in a certain context, use @macro(context). The only
context currently supported is 'neighborhood-wiki', and it's used to restrict
the 'projects' macro.

Signed-off-by: Rick Copeland rcopeland@geek.net

Rick Copeland Rick Copeland 2011-05-18

Wolf Wolf 2011-05-19

changed Allura/allura/lib/app_globals.py
changed Allura/allura/lib/macro.py
changed Allura/allura/lib/markdown_extensions.py
changed Allura/allura/model/neighborhood.py
changed Allura/allura/tests/test_globals.py
Allura/allura/lib/app_globals.py Diff Switch to side-by-side view
Loading...
Allura/allura/lib/macro.py Diff Switch to side-by-side view
Loading...
Allura/allura/lib/markdown_extensions.py Diff Switch to side-by-side view
Loading...
Allura/allura/model/neighborhood.py Diff Switch to side-by-side view
Loading...
Allura/allura/tests/test_globals.py Diff Switch to side-by-side view
Loading...