cmr.opendap.site.data

The functions of this namespace are specifically responsible for generating data structures to be consumed by site page templates.

Of special note: this namespace and its sibling page namespace are only ever meant to be used in the cmr.search.site namespace, particularly in support of creating site routes for access in a browser.

Under no circumstances should cmr.search.site.data be accessed from outside this context; the data functions defined herein are specifically for use in page templates, structured explicitly for their needs.

base-dynamic

(base-dynamic)(base-dynamic data)

Data that all pages have in common.

Note that dynamic pages need to provide the base-url.

base-page

multimethod

Data that all app pages have in common.

The :cli variant uses a special constructed context (see static.StaticContext).

The default variant is the original, designed to work with the regular request context which contains the state of a running CMR.

base-static

(base-static)

Data that all static pages have in common.

Note that static pages don’t have any context.

default-partner-guide

Data for templates that display a link to Partner Guides. Clients should overrirde these keys in their own base static and base page maps if they need to use different values.

default-title

Documentation forthcoming