Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Server ¶
Server serves the site on HTTP.
func (*Server) StartLiveReloader ¶
StartLiveReloader starts the Live Reload server as a go routine, and returns immediately
type TagInjector ¶
type TagInjector struct {
// contains filtered or unexported fields
}
TagInjector wraps a writer and adds a script tag to its content. It depends on the fact that dynamic page rendering makes a single Write call, so that it's guaranteed to find the marker within a single invocation argument. It doesn't parse HTML, so it could be spoofed but probably only intentionally.
Click to show internal directories.
Click to hide internal directories.