OCamlion (pronounced oh-camelion) is a static-site generator, useful for blogs and documentation. It relies on git as the underlying state/history mechanism for all source material.
OCamlion can be used from either the command line, as a scriptable tool, or inside the browser itself.
At a high-level, we use Irmin to pull a blog's git repository into the browser and store the raw git history in IndexedDB. We then render both your site and some administration tools in a special editing mode. You can edit and see changes in real-time, save changes locally, and push them to the remote repository when you're finished.
Install the ocamlion OPAM package and use the cli to generate your site and open it in a browser locally:
opam install ocamlion ocamlion new my_site && cd my_site ocamlion gen -s content -d _site ocamlion open
Kick off a rebuild of your site. All the convenience of a distributed blogging site, with none of the overhead.
- js_of_ocaml (compiles all of the pure-ocaml implementations in javascript, provides access to
browser events
, etc.) - omd (Markdown parsing/HTML-string generation)
- omdPlumbing (adds in the {{variable}} syntax, converts to <t:insert name="variable-name"> html string)
- xmlm (Parses/streams xml to treat it as reified data structure, rather than simple string manipulation)
- lwt (concurrency, but not actually used yet)
- Irmin (state, history, and git support)
Copyright (c) 2015 {{author.name}} <{{author.email}}>