#format wiki #language en #pragma section-numbers off #acl IanRiley:read,write,delete,revert,admin All:read #pragma supplementation-page on <> <> = 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 == === <> === {{{ Argument "pagename" is required. <> }}} 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 || || [[attachment:FormattedPage-1.0.py]] || 1.0 || 1.9.2 || || == Copyright == . @copyright: 2014 Ian Riley == License == GNU GPL, see COPYING for details. == Known issues and limitations == * None known ----- Hits:: <>