Renderers
Renderers are JS or TS functions of type Renderer
that elaborate a given data source and produce the HTML.
Renderers are invoked by directives. When invoking a renderer directives normally pass to them the data they need to produce the desired HTML.
For example, the built-in directives create-from-data-source
and public-file-list
use renderers to generate the HTML to inject into pages.
YASSB comes with two built-in renderers:
These are very simple renderers and you will probably want to define custom renderers to generate the DOM elements that best fit your needs.