lib/contexts/
mod.rs

1//! Defines types injected into templates.
2//!
3//! The primary purpose for these types is to provide a clean separation between the data that is
4//! stored and the data that is injected into a template. This allows us to append or derive extra
5//! data onto each type that is specific only to the template context. For example, slugified strings
6//! are added to the [`Book`][book] and [`Annotation`][annotation] types for use within templates.
7//!
8//! [annotation]: crate::models::annotation::Annotation
9//! [book]: crate::models::book::Book
10
11pub mod annotation;
12pub mod book;
13pub mod entry;