Commit graph

3 commits

Author SHA1 Message Date
nytpu
988a00f126 Add -e flag to place a stylesheet externally rather than loading it inline
By default, kineto loads a stylesheet given to -s from disk and places
it inline with the HTML in a <style>...</style> block.  This patch adds
a -e flag to load a stylesheet externally.  When the -e flag is passed
with a URI (relative or absolute), the given link is placed in the href
of a <link rel="stylesheet"...> tag.  This helps facilitate caching
which can *significantly* reduce request overhead, particularly when the
stylesheet is large (>= the size of the page content).

The given URI is not validated, and if it is invalid the browser will
404 when requesting it and the page will have no style.
2021-05-31 17:05:38 -06:00
José Mota
1975525eeb Add support for custom CSS. 2021-02-16 08:34:19 -05:00
Drew DeVault
8527505573 Initial commit 2020-10-11 13:43:39 -04:00