 | gitit-0.6.5: Wiki using happstack, git or darcs, and pandoc. | Contents | Index |
|
|
|
| Description |
| Functions for parsing command line options and reading the config file.
|
|
| Synopsis |
|
|
|
| Documentation |
|
| getConfigFromOpts :: IO Config |
| Parses command line options and returns configuration
based on the options (-f FILE specifies a configuration
file; some settings, such as port number, can be overridden
by a command line option).
|
|
| readMimeTypesFile :: FilePath -> IO (Map String String) |
| Read a file associating mime types with extensions, and return a
map from extensions to types. Each line of the file consists of a
mime type, followed by space, followed by a list of zero or more
extensions, separated by spaces. Example: text/plain txt text
|
|
| getDefaultConfig :: IO Config |
| Returns the default gitit configuration.
|
|
| Produced by Haddock version 2.3.0 |