In one sentence, Stog is a kind of Jekyll in OCaml: It is a static web site generator, able to handle blog posts as well as regular pages.

The main differences are:

Examples of web sites generated by Stog:

A mailing-list is here.

Get the code

Stog is developped on Github. See the Installation page for details about downloading and installing.

License

Stog is released under GPL v3.

Files in the doc/.stog/templates/ directory are released in the public domain; feel free to use them for your own site.

Latest news
Rss feed
April 23, 2013

Maxence Guesdon introduced Stog during a talk at INRIA Saclay-Île-de-France" on Tuesday, 23rd of April 2013. The slides are available here.

March 19, 2013

Release 0.8.0 of stog is available from the Installation page.

next
March 15, 2013

Maxence Guesdon will introduce Stog during a talk at INRIA Saclay-Île-de-France" on Tuesday, 23rd of April 2013, at 14h in room "Gilles Khan".

February 13, 2013

Release 0.7.0 of stog is available from the Installation page.

next
January 22, 2013

Stog has been available in Opam since release 0.4. The Stog-writing and Stog-rdf plugins are also available in Opam since yesterday.

next
January 16, 2013

Release 0.6 of stog is available from the Installation page.

December 18, 2012

Release 0.5 of stog is available from the Installation page.

November 28, 2012

The Stog-writing plug-in can be used to add foot notes and bibliographies to your stog generated site.

November 22, 2012

Release 0.4 of stog is available from the Installation page.

November 21, 2012

A previous post introduced the <ocaml-eval> function to evaluate ocaml code, enventually displaying the result in a toplevel way, etc.

OCaml code was evaluated in the Stog process, which required Stog to embed the OCaml toplevel, only available as bytecode. As a consequence, only the bytecode version of Stog could evaluate OCaml code using the internal toplevel.

next

For information you can see the source code of the page.

<page
  main="true"
  title="Stog"
  stog:site-description="Static blog and web site generator"
  stog:site-email="zoggy 'AT' bat8 'DOT' org"
  stog:site-url="http://zoggy.github.io/stog"
  stog:rss-length="10"
  navbar-home="active"
  stog:archived-elts="post"
  with-contents="true"
>
<stog:use>nocounter</stog:use>
<stog:sectionning>section,subsection</stog:sectionning>
<stog:hxml foo=""><hcode lang="xml" defer_="1"><contents/></hcode></stog:hxml>
<stog:ixml foo=""><icode lang="xml" defer_="1"><contents/></icode></stog:ixml>
<stog:nbsp>&#160;</stog:nbsp>
<contents>
<p>In one sentence, Stog is a kind of <ext-a href="http://jekyllrb.com/">Jekyll</ext-a> in OCaml:
It is a static web site generator, able to handle blog posts as well as regular pages.
</p>
<p>
The main differences are:
</p>
<ul>
<li>It is developped in <ext-a href="http://caml.inria.fr/">OCaml</ext-a>
and can be extended with OCaml plugins.</li>
<li>It is based on a xml engine allowing to apply substitutions
on some tags. Some substitutions are pre-defined, and others can be
added by plugins.</li>
<li>It easily supports multi-language sites.</li>
</ul>
<p>
Examples of web sites generated by Stog:
</p>
<ul>
<li>the Stog site (you're on it!),</li>
<li><ext-a href="http://form-ocaml.forge.ocamlcore.org/">Introduction to OCaml</ext-a> (in french),</li>
<li><ext-a href="http://gallium.inria.fr/~scherer/gagallium/">Gagallium</ext-a>,</li>
<li><ext-a href="http://zoggy.github.io/vlmc-suffix-trie/">Vlmc-suffix-tries</ext-a>,</li>
<li><ext-a href="http://zoggy.github.io/chamo/">The Chamo website</ext-a>,</li>
<li><ext-a href="http://zoggy.github.io/genet/">The Genet website</ext-a>,</li>
<li><ext-a href="http://www.oranadoz.net/">Oranadoz</ext-a>,</li>
<li><ext-a href="http://pauillac.inria.fr/~guesdon/">Maxence Guesdon's site</ext-a>.</li>
</ul>
<p>
A mailing-list is <ext-a href="https://lists.forge.ocamlcore.org/cgi-bin/listinfo/stog-devel">here</ext-a>.
</p>
<section title="Get the code">
<p>
Stog is developped on <ext-a href="http://www.github.com/zoggy/stog">Github</ext-a>.
See the <page href="install"/> page for details about downloading and installing.
</p>
</section>
<section title="License">
<p>
Stog is released under <ext-a href="http://www.gnu.org/copyleft/gpl.html">GPL v3</ext-a>.
</p>
<p>
Files in the <icode>doc/.stog/templates/</icode> directory are released in the public domain; feel free to use
them for your own site.
</p>
</section>

<section title="Latest news">
<elements type="post" rss="index.rss" max="10"/>
</section>
</contents>
</page>