vito / booklit

a pretty lit content authoring system
https://booklit.page
MIT License
175 stars 55 forks source link

breaking!: lazy rendering and reference resolution #52

Closed vito closed 2 years ago

vito commented 2 years ago

This allows plugins to lazily evaluate generated content (such as language examples, snippets, demos, etc).

References now embed a *Section so that they can be resolved lazily, i.e. upon rendering. The separate Resolve stage has been removed. Any plugins which previously constructed &Reference{} will now need to pass in the *Section as well. Sorry for any breakage! This affected two of my plugins (Bass and Booklit's docs) but the fix was always trivial.