euv-docs 0.28.28

A documentation site generator powered by euv + euv-ui (Rust/WASM).
1
2
3
4
5
6
7
8
9
10
11
12
13
use super::*;

thread_local! {
    /// The generated site projected onto the route layer's view.
    ///
    /// The projection is built once per thread on first use and then
    /// reused, because it is pure: it copies route strings and locale
    /// prefixes out of the generated site, which never changes for the
    /// lifetime of the bundle. Caching it keeps every navigation to a
    /// single pass over the generated arrays' *shape* rather than
    /// re-allocating a projection per render.
    pub static ROUTE_SITE: RouteSite = build_route_site();
}