jsantell / poet

A node.js blog engine
jsantell.github.io/poet
MIT License
604 stars 146 forks source link

Q: using Poet as a static site generator #65

Open shaneknysh opened 10 years ago

shaneknysh commented 10 years ago

I'd like to create (or steal) a plugin to extend Poet to generate the pages as a static site.

a) is this something that would fit in with Poet? 2) any advice on where to start?

jsantell commented 10 years ago

This should be possible. Pretty much generating all the views upfront and putting them in directories that match the routing urls (so by default, rendered post views would be stored in a directory "posts/"), and all the tag, category, etc. views, then you'll have a structured directory that you could drop into apache or something. Actually this doesn't seem too bad! And pretty useful.

shaneknysh commented 10 years ago

Excellent I was looking for a way to make a useful contribution. Once I have a handle on it I'll put up a pull request. I'll close this until I get something testable set up.

jsantell commented 10 years ago

Awesome, I think i'd use this too! Not sure if it'd be better to be a separate project or a part of this, depends on the size I guess. But should be pretty independent I think in its own module (in or out of poet). Either way, if there is functionality that's needed in the core to be exposed, let me know!