package
1.17.3
Repository: https://github.com/xyproto/algernon.git
Documentation: pkg.go.dev

# Functions

HTMLLink builds an HTML link given the link text, the URL to a file/directory and a boolean that is true if the given URL is to a directory.
InsertDoctype inserts <doctype html> to the HTML, if missing.
MaterialHead enables the Material style by adding CSS and JS tags that can go in a header.
MessagePage is an easy way to output a HTML page only given a title, the body (will be placed between the <body></body> tags) and the name of one of the built-in themes.
MessagePageBytes provides the same functionalityt as MessagePage, but with []byte instead of string, and without closing </body></html>.
NewTheme adds a new built-in theme.
NoPage provides the same functionality as NoPage, but returns []byte.
OneLevelOfIndentation finds one level of whitespace, given indented data and a keyword to extract the whitespace in front of.
SimpleHTMLPage provides a quick way to build a HTML page.
StyleAmber modifies Amber source code so that a link to the given stylesheet URL is added.
StyleHead returns contents that goes in "<head>", as bytes.
StyleHTML modifies HTML source code so that a link to the given stylesheet URL is added.
ThemeToCodeStyle returns the code highlight style that the given theme implicates.

# Constants

DefaultCSSFilename is the default CSS stylesheet.
DefaultCustomCodeStyle is the default chroma style for custom CSS See: https://xyproto.github.io/splash/docs/all.html for an overview.
DefaultGCSSFilename is the default GCSS stylesheet.
DefaultTheme is the default theme when rendering Markdown and for error pages.
MUICSS is from http://cdn.muicss.com/mui-0.9.39-rc1/css/mui.min.css.
MUIJS is from http://cdn.muicss.com/mui-0.9.39-rc1/js/mui.min.js.

# Variables

MetaKeywords contains a selection of allowed keywords for the HTML meta tag.