Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support more General Templating #9

Open
leostera opened this issue Feb 4, 2019 · 0 comments
Open

Support more General Templating #9

leostera opened this issue Feb 4, 2019 · 0 comments

Comments

@leostera
Copy link
Owner

leostera commented Feb 4, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant