Documentation ¶
Overview ¶
Package kisipar provides an opinionated web server for small(ish) Markdown-based sites. The API presented here allows for a standard server to be run via the command subpackage cmd/kisipar, or through a custom application. Much deeper customization is possible using the subpackages.
It is STRONGLY recommended that you run any public-facing kisipar servers behind a reverse-proxy web server such as Nginx: https://www.nginx.com
For more information see https://github.com/biztos/kisipar
Building the Server ¶
The standard server should be sufficient for most intended purposes.
go get github.com/biztos/kisipar go build github.com/biztos/kisipar/cmd/kisipar ./kisipar --help
You may of course build a custom server in order to expand -- or contract -- the Kisipar functionality.
Site Configuration ¶
The configuration file is in YAML format, must be named "config.yaml" and lives at the top of the site directory.
Site Layout ¶
A standard Kisipar site is contained in a directory, with a YAML configuration file and three subdirectories:
config.yaml pages/ static/ templates/
Static assets override pages. Templates are go-style (html/template).
Index ¶
Constants ¶
This section is empty.
Variables ¶
var LAUNCH_SERVERS = true
LAUNCH_SERVERS controls whether to actually launch the site servers; set to false for testing without spawning listeners.
Functions ¶
This section is empty.
Types ¶
Directories ¶
Path | Synopsis |
---|---|
Package app defines the Kisipar web server application.
|
Package app defines the Kisipar web server application. |
cmd
|
|
kisipar
The kisipar program loads and serves Kisipar web sites.
|
The kisipar program loads and serves Kisipar web sites. |
Package frostedmd implements Frosted Markdown: standard Markdown to HTML conversion with a meta map and a default title.
|
Package frostedmd implements Frosted Markdown: standard Markdown to HTML conversion with a meta map and a default title. |
Package funcmap provides functions useful to html templates, and a standard html.FuncMap of them.
|
Package funcmap provides functions useful to html templates, and a standard html.FuncMap of them. |
Package page defines a single page in a Kisipar web site.
|
Package page defines a single page in a Kisipar web site. |
Package pageset defines a set of pages in a Kisipar web site.
|
Package pageset defines a set of pages in a Kisipar web site. |
Package site defines a Kisipar web site, and contains most of its actual server logic.
|
Package site defines a Kisipar web site, and contains most of its actual server logic. |
assets
Package assets provides embedded asset data for the Kisipar site package.
|
Package assets provides embedded asset data for the Kisipar site package. |
Package utli assembles various utility functions useful in and around the Kisipar web-server project.
|
Package utli assembles various utility functions useful in and around the Kisipar web-server project. |