Configuration
Posted on Mon 19 Oct 2009
A file called "sitedef" in the site's root directory specifies global configuration settings for the site. This basically consisits of perl commands which are evaluated by wmg before processing the articles. The $site hash-ref should be used to store any global configuration settings, which can then be accessed later on. The following is a list of standard settings used by wmg, though you are free to add anything else for your own use:
- {title} - The site's title, included by default in the "title" section, and at the top of each page.
- {author} - The username of the site's author.
- {base} - The site's base URL when published (e.g. "http://www.blah.com").
- {copyright} - Copyright notice for site, included by default at the foot of each page.
- {editor} - Email address of the site's editor.
- {webmaster} - Email address of the site's webmaster, included by default at the foot of each page.
- {description} - A brief description of the site, included by default in RSS feeds.
- {HEAD} - Additional headers to insert in the "head" section of XHTML files. Here you can add links to stylesheets, alternative versions (e.g. RSS feeds), "Favourites" icons, metadata, etc.
- {NEWS} - XHTML formatted news from WMG::news::make_news(). Use to include news from external RSS feeds on your site.