Module quickmd::assets[][src]

Expand description

Management of external assets like Javascript and CSS.

The files are stored into the binary as strings and written to the filesystem when the application runs. For the HTML file, this allows the webview to load a URL instead of a string body, which makes reloading smoother (update the file, refresh).

For the other assets, it means the HTML can refer to local files instead of embedding the contents as <script> and <style> tags, making the output easier to read and debug.

Structs

A container for static assets.

The client-side state of the page as the user’s interacted with it. Currently, includes the scroll position and the dimensions of images on the page, so that reloading doesn’t change the viewport.

Constants

The version of highlight.js the app uses for code highlighting.