====== Exporting ======

Zim will be able to export content to various formats.

At the moment only exporting to (simple) html is supported as a proof of concept (and because I wanted to put this doc on the website :) ).

Try something like:

    $ zim --export format=html,template=./foo.html,root=./html ~/docs/zim notes:

This should export the ''notes:'' namespace from the repository in ''~/docs/zim''
to html using template ''foo.html''. The "root" of the export string is the directory used for the exporter output.

The template should contain the tag ''%%CONTENT%%'', which will be replaced with the html output. You need the template because at this point the exporter doesn't create a html ''<head>'' etc.

You can also add the option ''recurs=0'' if you don't want to export sub-namespaces. This option defaults to 1.

Links between pages are at the moment **case sensitive** when exporting to html. This needs fixing.

==== TODO ====
* Set an header offset, for example if oofset is 2 all head1 => head2, all head2 => head3 etc. This is usefull when the template also contains headers. 
* Have more template fields, like page name, modification date etc.
* Have the option to compile a namespace into one big page.
