staticMD

command module
v0.0.0-...-3620dc3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 23, 2023 License: ISC Imports: 20 Imported by: 0

README

StaticMD

This is a simple webserver that, when receiving a request, reads an accompanying file, inserts its contents in a template and sends it to the client.

For content files, they should be found in the ./content directory inside the root path specified.

If the URL path finds a file which ends in .md, then that file is parsed and served with the layout template. If the URL explicitly ends in .md, then the raw markdown file is sent.

If the URL path finds a file which ends in .body, then that file's contents are passed to the layout template.

Static files in the ./static directory are served by a simple http.FileServer, don't forget to add index.html to hide contents if need be!

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL