Get HtmlReader to work again

wrote unit tests and documentation, improved regular expression.
The HtmlReader is enabled by default now and parses metadata in html
files of the form:
<!-- key:value -->
This commit is contained in:
Florian Jacob 2012-09-02 10:09:08 +02:00
commit 39db9ddcfd
7 changed files with 72 additions and 15 deletions

View file

@ -171,6 +171,17 @@ Markdown posts should follow this pattern::
This is the content of my super blog post.
Your third option is to write raw html (by ending your file in ``.html``)::
<!-- title: My super title -->
<!-- date: 2010-12-03 10:20 -->
<!-- tags: thats, awesome -->
<!-- category: yeah -->
<p>
This is the content of my super blog post.
</p>
Note that, aside from the title, none of this metadata is mandatory: if the date
is not specified, Pelican will rely on the file's "mtime" timestamp, and the
category can be determined by the directory in which the file resides. For