Find file
Fetching contributors…
Cannot retrieve contributors at this time
41 lines (29 sloc) 1.37 KB

HTML Template

joDoc allows for setting an HTML template to wrap around the text from the markdown blocks.


Currently, the only variables supported in the HTML template are $body and $title.

The $body tag will be replaced with the body of the HTML output, and $title will be replaced with whatever

is given to the --title option for joDoc, or "JoDoc" by default.

By default, a "non-terrible" template is used, linking to the css stylesheets in the samples/css folder.


A simple example of a joDoc compatible template can be found in samples/template.html.


The default template of joDoc is a little more advanced, and depends on doc.css and docbody.css, which can be found in samples/css/.

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "">
<html lang="en">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="generator" content="joDoc">
<link rel="stylesheet" type="text/css" href="docbody.css">
<link rel="stylesheet" type="text/css" href="doc.css">
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no, width=device-width">
<meta name="format-detection" content="false">