httk.serve.web.widgets.optimade_assets

Expose the built-in OPTIMADE protocol asset to site-local widgets.

Functions

optimade_protocol_asset()

Return the registered-compatible built-in OPTIMADE protocol module.

optimade_protocol_href(context)

Return the protocol module URL for a page.

Module Contents

httk.serve.web.widgets.optimade_assets.optimade_protocol_asset()[source]

Return the registered-compatible built-in OPTIMADE protocol module.

Returns:

The protocol module asset used by optimade_table.

Return type:

httk.serve.web.widgets.core.WidgetAsset

httk.serve.web.widgets.optimade_assets.optimade_protocol_href(context)[source]

Return the protocol module URL for a page.

Parameters:

context (httk.serve.web.widgets.core.WidgetContext) – Widget invocation context.

Returns:

Deployment-relative protocol module URL.

Return type:

str