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 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.0.0.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

TracIncludeMacro-3.0.0-py2-none-any.whl (7.5 kB view details)

Uploaded Python 2

File details

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

File metadata

File hashes

Hashes for TracIncludeMacro-3.0.0.tar.gz
Algorithm Hash digest
SHA256 6f1eda49ec67cbac3f41384435857d000a585801ac7a306a7b11a5ead1525ff2
MD5 087ef7d983a7a86cc461a7b1ece0ea43
BLAKE2b-256 6a1eb8b65998dada129c0409ef8515189f4becc78cf30e9dbe9739965365eee0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for TracIncludeMacro-3.0.0-py2-none-any.whl
Algorithm Hash digest
SHA256 c1cabc06fc13ae8cc7b3acded8d1f67e5f8dd051cc1a4867d8996cd9454eb811
MD5 1b1554bf63136a7a4bbb4a39af4a0b87
BLAKE2b-256 53b77f4b86d30fec4fa26ee3c1e5e512e603ee49ac69cbb0f3e59972c790b36b

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