tiny.zen.SiteCatalog
Defined in tiny.zen.
API (4)
Actions
Public operations.
Fields and members
Public fields and members.
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;Also reachable as
Audit
| Definitions | 3 |
|---|---|
| Public names | 6 |
| Members | 2 |
| Version | 26.7.0 |
| Revision | daab053ee433 |