Renders a browsable reference for a sen data model as a self-contained web page. The output needs no server, no network and no host site: it opens from a file path and carries its own navigation and search.
More...
#include <html.h>
|
| using | FileContents = std::map<std::filesystem::path, std::string> |
| | Map of relative output path -> rendered file contents: an index.html and the four files it names, which together are the application and the model it displays.
|
Renders a browsable reference for a sen data model as a self-contained web page. The output needs no server, no network and no host site: it opens from a file path and carries its own navigation and search.
◆ FileContents
Map of relative output path -> rendered file contents: an index.html and the four files it names, which together are the application and the model it displays.
◆ HtmlGenerator()
| sen::gen::HtmlGenerator::HtmlGenerator |
( |
| ) |
|
◆ ~HtmlGenerator()
| sen::gen::HtmlGenerator::~HtmlGenerator |
( |
| ) |
|
◆ generate()
Renders the application and the model it displays. title names the model on screen. The model is written as a script assigning a global rather than as JSON read at run time, because a fetch fails outright from a file:// path.
The documentation for this class was generated from the following file: