Articles

The mwpage plugin converts articles written in MediaWiki syntax to HTML pages.

The available attributes are best illustrated with an example:

pages = plugin("mwpage")       # create the plugin
pages.sources = [ "*.wiki" ]   # specify a list of file patterns to convert
pages.excludes = [ ".svn/*" ]  # list of file patterns to exclude
pages.matching = "glob"        # matching method for file patterns
                               # ("glob" or "re")
pages.template = "mypage.tmpl" # cheetah template to use
pages.menu = "mypage.menu"     # menu list to use
pages.menu_template = "menu.tmpl" # template for the menu (normally not needed)

The article is converted to a set of variables that can be used in a template:

variable name contains
$value The converted wiki article as an HTML fragment

See the templates page to learn how to define a template.