markup

package
v0.0.0-...-462374e Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2023 License: Unlicense Imports: 5 Imported by: 0

Documentation

Overview

Package markup serves markup files as HTML on localhost.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Serve

func Serve(r Renderer, filename string) error

Serve serves markup in file filename rendered with r on localhost. It automatically rerenders the markup if the file is changed. It also tries to open a browser.

Types

type Renderer

type Renderer interface {
	Render(filename string) ([]byte, error)
}

Renderer is the markup interface.

Jump to

Keyboard shortcuts

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