Skip to documentation
SLOP

tiny.zen.SiteCatalog

Reference tiny.zen SiteCatalog

Defined in tiny.zen.

API (4)

Actions

Public operations.

Fields and members

Public fields and members.

No direct callersNo direct callstiny.zenSiteCatalog
Static calls · unresolved targets: unknown · external targets: unknown.

Source

Source: lib/zen/src/site/catalog/model.zig:31

zig
pub const Catalog = struct {    base: []const u8 = "",    pages: []const Entry = &.{},    pub fn findRoute(self: Catalog, route: []const u8) ?*const Entry {        for (self.pages) |*entry| {            if (routeMatches(self.base, entry.url, route)) return entry;        }        return null;    }    pub fn findSource(self: Catalog, relative_path: []const u8) ?*const Entry {        for (self.pages) |*entry| {            if (std.mem.eql(u8, entry.relative_path, relative_path)) return entry;        }        return null;    }};

Source: lib/zen/src/root.zig:274

zig
/// Borrowed sorted catalog produced by sealed `SiteCatalogStorage`.pub const SiteCatalog = site_catalog.Catalog;
Called byCallsNo direct callersprivate sourcelib.zen.src.site.catalog.modelrouteMatchesSiteCatalogfindRoute
Static calls · unresolved targets: 0 · external targets: 0.

Also reachable as

site.catalog.Catalog.

Audit

Definitions3
Public names6
Members2
Version26.7.0
Revisiondaab053ee433