wiki:ParameterizedIncludeMacro

Version 1 (modified by Christopher Head, 9 years ago) (diff)

New hack ParameterizedIncludeMacro, created by chead

Include wiki pages in each other with parameter substitution

Description

This macro allows you to write a template wiki page with placeholders, then include that wiki page in one or more other wiki pages (potentially even more than once on a single page), substituting different values for each placeholder on each inclusion.

Bugs/Feature Requests

Existing bugs and feature requests for ParameterizedIncludeMacro are here.

If you have any issues, create a new ticket.

Download

Download the zipped source from here.

Source

You can check out ParameterizedIncludeMacro from here using Subversion, or browse the source with Trac.

Installation

General instructions on installing Trac plugins can be found on the TracPlugins page. This macro is a single-.py-file plugin, so it is installed by dropping it directly into plugins.

Recent Changes

17655 by rjollos on 2020-01-11 07:53:24
Make compatible with Trac 1.4+

Add Rev to svn:keywords

Fixes #13724.

17350 by chead on 2019-03-04 21:37:24
Bump version number
17349 by chead on 2019-03-04 21:36:34
Allow escaping characters using backslashes

A backslash can be inserted in order to escape a character in the macro
parameters and give it its literal meaning. Typically this would be a comma (to
include the comma in the substitution rather than using it to separate multiple
parameters). Backslashes themselves can be escaped with more backslashes.

(more)

Author/Contributors

Author: chead
Maintainer: Christopher Head
Contributors: