wiki:IncludeMacro

Version 2 (modified by Noah Kantrowitz, 11 years ago) (diff)

No likely smileys

Include external resources in a wiki page.

Description

This macro lets you include things into wiki pages.

Currently supported sources are:

  • HTTP - http:
  • FTP - ftp:
  • Wiki pages - wiki:

An optional second argument lets you force the output MIME type to something specific, but most things should have sane defaults.

Bugs/Feature Requests

Existing bugs and feature requests for IncludeMacro are here.

If you have any issues, create a new ticket.

Download

Download the zipped source from [download:includemacro here].

Source

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

Example

Include Google on a page:

[[Include(http://www.google.com)]]

Include a wiki-formatted file from the repository:

[[Include(source:trunk/my_file.txt, text/x-trac-wiki)]]

Recent Changes

17157 by rjollos on 2018-04-25 00:13:15
TracIncludeMacro 3.2.0dev: Fix regression in r15552

The regression prevented specifying the mimetype
when rendering a file from the repository.

Closes #4004, Refs #12778.

17156 by rjollos on 2018-04-25 00:11:55
TracIncludeMacro 3.2.0dev: Use web_context

Refs #4004.

16762 by rjollos on 2017-08-25 18:56:59
TracIncludeMacro 3.1.0: Tag release
(more)

Author/Contributors

Author: coderanger
Contributors: