markup

package
Version: v0.0.0-...-480a31d Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2021 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.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL