Expand description

A series of exports that should be unnecessary for nearly all uses of Perseus. These are used principally in developing alternative engines.

Modules

Internal utilities for building.

Internal utilities for working with error pages.

Internal utilities for exporting.

Internal utilities for working with internationalization.

Internal utilities for logging. These are just re-exports so that users don’t have to have web_sys and wasm_bindgen to use web_log!.

Internal utilities for working with the Perseus router.

Internal utilities for working with the serving process. These will be useful for building integrations for hosting Perseus on different platforms.

Internal utilities for working with the app shell.

Functions

Gets the path prefix to apply in the browser. This uses the HTML <base> element, which would be required anyway to make Sycamore’s router co-operate with a relative path hosting.

Gets the path prefix to apply on the server. This uses the PERSEUS_BASE_PATH environment variable, which avoids hardcoding something as changeable as this into the final binary. Hence however, that variable must be the same as what’s set in <base> (done automatically). Trailing forward slashes will be trimmed automatically.