Skip to main content

Module static_content

Module static_content 

Source
Expand description

Static and prerendered content serving.

Serves prerendered HTML, static assets, homepage, and metadata files from the web dist directory, falling back to the content repository when a page is known but not prerendered. Re-exports the matcher (StaticContentMatcher), the serving state (StaticContentState), and the session helpers (SessionInfo, ensure_session).

Re-exports§

pub use config::StaticContentMatcher;
pub use homepage::serve_homepage;
pub use session::SessionInfo;
pub use session::ensure_session;
pub use static_files::StaticContentState;
pub use static_files::serve_static_content;
pub use fallback::*;

Modules§

config
fallback
homepage
session
static_files
Static-file request handling with caching and content fallback.