modulepackage
0.0.0-20241007003310-53e45af4f1df
Repository: https://github.com/noncombatant/content2html.git
Documentation: pkg.go.dev
# README
content2html
Package content2html implements a very simple HTML templating system for
documents. It applies an html/template
and fills it with the body text from an
input file, discovering the document’s <title>
from its 1st <h1>
. This way,
you can write plain HTML, and generate complete documents with templatized
boilerplate.
# Packages
No description provided by the author
# Functions
GenerateDocument executes template t with the document content, writing to w.
GenerateHTML executes template t with the document contentPathname, writing the minified result to w.
GenerateHTMLFile executes template t with the document contentPathname, writing the minified result to a new file in outputDirname.
GetHTMLPathname returns a pathname whose basename ends in .html and which resides in outputDirname, given an input pathname.
Minify minifies HTML, CSS, and JS in r and writes the result to w.