[][src]Crate roost_client

The WASM binary crate served by roost to handle client-side operations.

Structs

Client

Structure that is exported to JS along with its constructor

GlobalJS

A JS function object used to import its update method

Constants

__wbg_generated_const_GlobalJS

Statics

global_js

Functions

document

Retrieves web_sys::Document

intercept_relative_links

Ensure that anytime a link such as <a href="/foo"></a> is clicked we re-render the page locally instead of hitting the server to load a new page.

location

Retrieves web_sys::Location

update_hljs

A function that updates all <pre><code> blocks within the body. The update results in syntax highlighting thanks to Highlight.js

window

Retrieves web_sys::Window