Documentation
¶
Index ¶
- type AlvuConfig
- func (ac *AlvuConfig) Build() error
- func (ac *AlvuConfig) FlushFiles(files []HookedFile) error
- func (ac *AlvuConfig) HandlePublicFiles(files []string) (err error)
- func (ac *AlvuConfig) NormalisePort(port string) string
- func (ac *AlvuConfig) ReadDir(dir string) (filepaths []string, err error)
- func (ac *AlvuConfig) ReadLayout() string
- func (ac *AlvuConfig) Rebuild(path string)
- func (ac *AlvuConfig) Run() error
- func (ac *AlvuConfig) ServeHandler(rw http.ResponseWriter, req *http.Request)
- func (ac *AlvuConfig) StartServer() error
- type HookFn
- type HookSource
- type HookedFile
- type Hooks
- type Logger
- type PageRenderData
- type SiteMeta
- type Watcher
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlvuConfig ¶
type AlvuConfig struct {
HookDir string
OutDir string
RootPath string
BaseURL string
EnableHardWrap bool
EnableHighlighting bool
HighlightingTheme string
Serve bool
PollDuration int
PortNumber string
Transformers map[string][]transformers.Transfomer
// contains filtered or unexported fields
}
func (*AlvuConfig) Build ¶
func (ac *AlvuConfig) Build() error
func (*AlvuConfig) FlushFiles ¶
func (ac *AlvuConfig) FlushFiles(files []HookedFile) error
func (*AlvuConfig) HandlePublicFiles ¶
func (ac *AlvuConfig) HandlePublicFiles(files []string) (err error)
func (*AlvuConfig) NormalisePort ¶
func (ac *AlvuConfig) NormalisePort(port string) string
func (*AlvuConfig) ReadDir ¶
func (ac *AlvuConfig) ReadDir(dir string) (filepaths []string, err error)
func (*AlvuConfig) ReadLayout ¶
func (ac *AlvuConfig) ReadLayout() string
func (*AlvuConfig) Rebuild ¶
func (ac *AlvuConfig) Rebuild(path string)
func (*AlvuConfig) Run ¶
func (ac *AlvuConfig) Run() error
func (*AlvuConfig) ServeHandler ¶
func (ac *AlvuConfig) ServeHandler(rw http.ResponseWriter, req *http.Request)
func (*AlvuConfig) StartServer ¶
func (ac *AlvuConfig) StartServer() error
type HookSource ¶
type HookedFile ¶
type HookedFile struct {
transformers.TransformedFile
// contains filtered or unexported fields
}
type Hooks ¶
type Hooks struct {
// contains filtered or unexported fields
}
func (*Hooks) ProcessFile ¶
func (h *Hooks) ProcessFile(file transformers.TransformedFile) (hookedFile HookedFile)
type PageRenderData ¶
Click to show internal directories.
Click to hide internal directories.