Module renderer

Source
Expand description

A submodule that provides Renderable trait for objects that can be rendered.

Structs§

Renderer
A struct that renders objects into html pages. It is meant to be used as a worker object that collects objects and renders them all at once. The objects are rendered in a BFS order, with the depth of the objects being determined by the BFS algorithm.

Enums§

EntryPoint
RenderableType 🔒

Traits§

GetPath
ProceduralPath
Renderable
Trait for objects that can be rendered into a html page. Since this uses [minijinja] the serde::Serialize trait is also needed. Each object that implements this trait should have a corresponding template file in the templates folder.

Functions§

create_dir_maybe 🔒
A convenience function to create a directory if it doesn’t exist, and do nothing if it does. Also prints an error message if the directory creation fails.