Skip to main content

Include the contents of external URLs and other Trac objects in a wiki page.

Project description

Notes

This macro lets you include various things.

Currently supported sources:

  • HTTP - http: and https:

  • FTP - ftp:

  • Wiki pages - wiki:

  • Repository files - source:

  • Ticket comments - ticket:N:comment:M (3.0dev, syntax may be changed before release)

The default source is wiki if only a source path is given.

An optional second argument sets the output MIME type, though in most cases the default will be correct.

Permissions

The three remote sources (http, https, and ftp) require INCLUDE_URL to be rendered.

Anyone can add a call to these, however they will not be shown. This is not a replacement for render_unsafe_content, see below.

Configuration

If [wiki] render_unsafe_content is off (the default), any produced HTML will be sanitized.

To enable the plugin:

[components]
includemacro.* = enabled

Example

Include another wiki page:

[[Include(PageName)]]

Include a section of a page (the section heading must have an explicit id):

[[Include(PageName#section)]]

Include the HEAD revision of a reStructuredText file from the repository:

[[Include(source:trunk/docs/README, text/x-rst)]]

Include a specific revision of a file from the repository:

[[Include(source:trunk/docs/README@5, text/x-rst)]]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

TracIncludeMacro-3.1.0.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

TracIncludeMacro-3.1.0-py2-none-any.whl (7.6 kB view details)

Uploaded Python 2

File details

Details for the file TracIncludeMacro-3.1.0.tar.gz.

File metadata

File hashes

Hashes for TracIncludeMacro-3.1.0.tar.gz
Algorithm Hash digest
SHA256 47ffd8f82fee728e35a98b468c379d5375afa98829fd38c10ff32e149ba0c5a0
MD5 8c57fe9d96417804b75f926b9fa98800
BLAKE2b-256 fd6c9f2d555900a2a86e5f0fa486b60b6e22853031e78670cc43435159a45bab

See more details on using hashes here.

File details

Details for the file TracIncludeMacro-3.1.0-py2-none-any.whl.

File metadata

File hashes

Hashes for TracIncludeMacro-3.1.0-py2-none-any.whl
Algorithm Hash digest
SHA256 a9c41bc834f435abba5e439a9fc941eb305b4163c09aed210d7aafbbd943ee23
MD5 ef0d8d4852d90827ed22dc243f9158ef
BLAKE2b-256 de179f208a0aef277973696b2e933c0cec5ed9d37cc7c9b29a427dbd0b809fed

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page