mdpage : html generater for markdown files.
Usage
mdpage <file1> <file2>...
options:
-h, --help : show this messages
-t, --template <name> : use custom template <name>.html.erb under ~/.mdpage/
-v, --version : show version infomation
- all files encodings should be UTF-8.
- if you use template option, set your template file to ~/.mdpage
- naming convention of the custom template file: name.html.erb
Custom template example
template files should have two variables.
- @page[:title] : First match line which start with "# ", will be set to @page[:title].
- @page[:contents] : Compiled markdown contents will be set to @page[:contents].
example
$ cat ~/.mdpage/hoge.html.erb
Dependency
:default
- rdiscount (markdown parser)
:development
- rake
- test-unit
- shoulda