deconst / presenter

Consumes the content store API to render HTML to humans
4 stars 6 forks source link

Support envelope addenda #123

Closed smashwilson closed 8 years ago

smashwilson commented 8 years ago

Remove the special-cased _toc envelope fetch. Instead, if an envelope contains an addenda element, fetch each referenced envelope and make it available to the template context.

Fixes #120.

smashwilson commented 8 years ago

All content from content repositories that use templates that reference deconst.content.globals.toc have been resubmitted with the latest Sphinx preparer. I've verified that published envelopes from all repositories (at least their index pages) now have addenda.repository_toc elements.

The existing templates will work in the interim because I'm assigning deconst.content.globals.toc temporarily.