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)]]
Include only a subpart of file from the repository (use named arguments : start, end, lineno):
[[Include(source:trunk/docs/README@5, text/x-rst, start=5, end=15)]] [[Include(source:trunk/docs/README@5, text/x-rst, start=5, end=15, lineno=yes)]]
It’s possible to use regular expressions in start and/or end parameters
[[Include(source:trunk/docs/README, start=”[a-z]+”, end=15, lineno=yes)]] [[Include(source:trunk/docs/README, start=”[a-z]+”, end=”[.+]”, lineno=yes)]]
Metadata
Release files for TracIncludeMacro 3.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| TracIncludeMacro-3.2.0.tar.gz | 7.4 kB | Without provenance | Details for TracIncludeMacro-3.2.0.tar.gz |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| TracIncludeMacro-3.2.0-py2.7.egg | Legacy Egg format | - | - | Details for TracIncludeMacro-3.2.0-py2.7.egg |
| TracIncludeMacro-3.2.0-py2-none-any.whl | Python 2 | none | any | Details for TracIncludeMacro-3.2.0-py2-none-any.whl |
Total release size: 21.9 kB
Release files / TracIncludeMacro-3.2.0.tar.gz
| Download URL | TracIncludeMacro-3.2.0.tar.gz |
|---|---|
| Size | 7.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
be7173dba5e5a1ae49ddd4222efb17f0177a489b286624627e5d6090fc9fa6ac
|
|
BLAKE2b-256 checksum How to use checksums |
7ff280b10d46a63083dc14715d510ac095e35773d8505c74886a277540bf6a71
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.15.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/44.1.1 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/2.7.18
|
Release files / TracIncludeMacro-3.2.0-py2.7.egg
| Download URL | TracIncludeMacro-3.2.0-py2.7.egg |
|---|---|
| Size | 6.6 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
9d1f0e04836484b02d7ac3f30d00d078f47e6b9e9a2b179e4d9d897e211c1be5
|
|
BLAKE2b-256 checksum How to use checksums |
9dc72a4e4d321430d349ece010ac1a2e68c52370f8057402650741c43f42d73d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.15.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/44.1.1 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/2.7.18
|
Release files / TracIncludeMacro-3.2.0-py2-none-any.whl
| Download URL | TracIncludeMacro-3.2.0-py2-none-any.whl |
|---|---|
| Size | 7.9 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
337c29ccfd581e8148469dd0f195f642841bb6693a74e8e926374dd88091e23a
|
|
BLAKE2b-256 checksum How to use checksums |
c5ae43eaef4dd602f47a613cf83bc6540004c8df017be53353ddd3dfe078e4c6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.15.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/44.1.1 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/2.7.18
|
Security for TracIncludeMacro 3.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.