davebalmer / joDoc

Simple, open-ended JavaScript source documentation system based on markdown. joDoc rev 1.0.1 is available. Check Wiki page for some examples.
http://joapp.com/jo#joDoc
Other
62 stars 4 forks source link

Injecting existing HTML shouldn't use the markdown template #14

Closed davebalmer closed 13 years ago

davebalmer commented 13 years ago

Users reporting jodoc is taking existing html files, which works, except the contents of those files are being jammed into the --template file (which sould be reserved for markdown).

The simple fix is to make a special case for html files which doesn't call html_head.

The deeper fix might be to detect if the HTML in question has a tag or not to decide if the --template file should be used (the HTML files could in fact be snippets of html).

The even deeper fix to that would be adding another command line option to tell jodoc either to ignore the template for html files, or maybe better, allow definition of a template based on input file type (possibly a huge can of worms).

davebalmer commented 13 years ago

This is working ok for now, closing.