Expand description
Write a single HTML file that serves as a Web Menu for all processes in a Process Library
The purpose of this module is to write a nice HTML file that lists useful information about all processes in a library. Carl Sagan: “If you want to make an apple pie from scratch, you must first invent the universe.”
- What processes are in the library?
- What is the useful information?
All information from all processes in a Process Library (user’s flat list of folders) is stored in the Library struct, which essentially houses a vector of crate::read_ebml::Process structs. This module defines the Library struct, creates one, and then reads it to create “useful” HTML.
The Library struct is public, but its associated fields are private. “Get” and “Set”/“Add” functions exist to safely read/write Library fields.
Structs§
- Library
- Top-level struct containing all information read from an entire Process Library
Functions§
- _list_
files 🔒 - Helper function that looks at the name of every directory that shares a parent with the stanhope application binary.
- compose_
body_ 🔒footer - TODO: currently empty
- compose_
body_ 🔒header - The header tag on this page is preceded by a scroll-by advertisement; the header itself is sticky.
- compose_
body_ 🔒of_ webmenu - The entire composition of the body contents you see on screen, broken up into
- compose_
body_ 🔒table - Compose the actual functional purpose of this module: make a useful table that has information about every process in a library.
- compose_
bottom_ 🔒of_ webmenu - Simply close out the HTML tag.
- compose_
head_ 🔒of_ webmenu - All “head” metadata, including:
- compose_
top_ 🔒of_ webmenu - Simple: doctype declaration and opening of the HTML tag.
- find_
all_ 🔒process_ folders - Wrapper function that calls the wrapper function.
- find_
name_ 🔒of_ library - Returns the name of the library, which… we define as the folder name of the directory that contains the stanhope binary and all process folders.
- generate_
complete_ webmenu - The only public function, because the only purpose of this module is to write an HTML file!
- list_
files 🔒 - Wrapper function that calls the recursive helper to get the list of non-“assets” folders that exist next to the stanhope binary.