Contents
FormattedPage
Background and rationale
MoinMoin provides the Include marco, with its range of options, to insert content from another page into the current page. The included content is fully integrated into the host page rather than as it might appear alone. MoinMoin MacroMarket (http://moinmo.in/MacroMarket) offerings the IncludePage macro, which displays content from other pages within a frame. Neither quite satisfied the needs of the Collection.py parser, which needs to be able to include the full content of pages formatted as they would appear alone, and without affecting the heading structure of the host page. So this macro has been written as a helper macro for that parser, and the content it returns is further processed by the EmbeddedPage.py macro.
Description
FormattedPage returns HTML for a whole page formatted according to the processing instructions of that page. It does not include the options of in-built Include macro, but allows the formatted page to use footnotes, particularly because these are used by the Ref.py macro. Also, it leaves the heading structure for the host page unaltered. It uses MoinMoin.Page.send_page with output redirected so that the HTML can be returned.
Usage
<<FormattedPage(pagename)>>
Argument "pagename" is required. <<FormattedPage(pagename)>>
If the page specified does not exist or is empty, the macro returns nothing. No error message is returned.
Examples
See EmbeddedPage.py macro and collect.py parser for examples of it use.
Download & Release Notes
Download |
Release Version |
Moin Version |
Release Notes |
1.0 |
1.9.2 |
|
Copyright
@copyright: 2014 Ian Riley <ian@riley.asia>
License
GNU GPL, see COPYING for details.
Known issues and limitations
- None known
- Hits
6261