An earlier patch caused the '-f' option not to work. Closes #336.
Also involves a refactor of options into those that make the program quit immediately, and those that just alter the configuration.
API changes: * Removed withInput. * Replace fileContents with filePath in Params. Fixes: * uploadForm.js: Remove prefix with path when populating wikiname field.
This way we have a uniform solution for GHC 6.10 and 6.12, and don't have to use CPP tricks. This change fixes categories on GHC 6.12. Resolves Issue #98.
Mostly these involve conditionalizing imports of System.IO.UTF8.
Note that the exports from Config have changed: getConfigFromOpts is no longer exported, but getConfigFromFile is exported. This should be more useful for those using gitit as a library.
Default is now for math to be converted into MathML by texmath and served using MathMLinHTML.js. This isn't completely portable, so jsMath and raw options are also provided.
Everything else falls back to the defaults in the data directory.
+ Removed redundant 'Plugin' from their names. + ImgTeX plugin needed an update. + All plugins included in gitit.cabal.
These are only needed if you need to do cleanup (or save state) on exit, which we don't with the current system. This will make it easier to write an init script.
Also folded user file reading and plugin loading into it.
Library exports functions to create template, static, repo.
+ introduced WikiState, including Config, filestore, and compiled template (one per wiki, in contrast to AppState) + moved template file creation from N.G.Config to gitit.hs.
Gitit.Happstack is now Network.Gitit. Gitit.X is now Network.Gitit.X. The main program is now gitit.hs.