cactus
cactus copied to clipboard
Support more General Templating
If site
files supported rules like:
(page
index.md
(with-generator Index.re))
Then perhaps we can define Index.re
to be:
open Cactus;
include Cactus.Generator.Make({
let render = (ctx, project, site, page) => {
/* and here we can transform the Index.md page using Omd */
};
});
This would allow to treat pages as inputs to modules, which can then do really just any amount of side-effects to transform them (including any I/O).
xrefs: #8