Skip to content

Instantly share code, notes, and snippets.

@rhalff
Created January 11, 2014 06:09
Show Gist options
  • Select an option

  • Save rhalff/8367654 to your computer and use it in GitHub Desktop.

Select an option

Save rhalff/8367654 to your computer and use it in GitHub Desktop.
Generates HTML pages from markdown documents
+-----------------------+
+----------------- | data:string | -+
| +-----------------------+ |
| | |
| | out:out|in:path |
| v |
| +-----------------------+ |
| | fs:exists | |
| +-----------------------+ |
| | |
| | out:exists|in:in | out:out|in:path
| v |
| +-----------------------+ |
| | conditional:true | |
| +-----------------------+ |
| | |
| | out:no|in::start |
| v |
| +-----------------------+ |
| | fs:mkdir | <+
| +-----------------------+
+--------------------------+ | +-----------------------+
| fs:glob | -+----------------> | path:basename |
+--------------------------+ | +-----------------------+
| | |
| out:matches|in:filename | out:out|in:dir | out:result|in:name
v | v
+--------------------------+ | +-----------------------+
| fs:readFile | +----------------> | fs:file |
+--------------------------+ +-----------------------+
| |
| out:data|in:body | out:file|in:filename
v v
+--------------------------+ out:body|in:data +-----------------------+
| template:markdown | ------------------> | fs:writeFile |
+--------------------------+ +-----------------------+
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment