Tanguv0.35.0
Web & HTTP6 exports
Raw Markdown

/web/app/graph

Filesystem-driven application route graph (App-Graph) for breadcrumbs, navigation trails, and static site crawling.

(use /web/app/graph)

Structs#

App-Graph#

struct

Application route and navigation graph holding a hierarchy spec and fast path index.

FieldTypeDefaultConstraints / Notes
specAny——
indexAny——

Constants#

App-Node#

constant · Any

Type alias representing a single normalized node in an `App-Graph`.

Value:Map

Functions & symbols#

construct-app-graph-from-fs#

function
(construct-app-graph-from-fs ...params)

Construct an App-Graph from html.tan files and sidecar metadata.

ParameterTypeOptionalDescription
paramsAnyoptional—
Returns:Any

get-trail#

function
(get-trail graph path vars)

Returns the breadcrumb trail of ancestor nodes from root down to `path`.

ParameterTypeOptionalDescription
graphAnyrequired—
pathAnyrequired—
varsAnyrequired—
Returns:Any

graph-to-assoc#

function
(graph-to-assoc graph)

Converts an `App-Graph` index into a `{path handler}` map suitable for `route-map`.

ParameterTypeOptionalDescription
graphAnyrequired—
Returns:Any

make-app-graph#

function
(make-app-graph spec)

Construct a graph from a spec tree.

ParameterTypeOptionalDescription
specAnyrequired—
Returns:Any