preaction / Statocles

Static website CMS
http://preaction.me/statocles
Other
84 stars 33 forks source link

Build a Page Dependency Graph #493

Open preaction opened 8 years ago

preaction commented 8 years ago

Pages should know all of the data they depend on so that when content is updated, those affected pages can be re-rendered. This will improve performance in the daemon, and could also unlock some fun features in the future.

Pages built by apps can have any dependent pages added directly. Content added by templates will need to be detected and added to the dependency graph. It is okay if adding content via templates requires a special helper function to register the dependency into the graph (an embed helper or something).

See #317 for further discussion.