Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArticleTmplContext ¶
type ArticleTmplContext struct {
Title string
Date time.Time
HTML template.HTML
IsMarkDown bool
LiveReload bool
}
func (*ArticleTmplContext) MarkDown ¶
func (a *ArticleTmplContext) MarkDown(content []byte) error
func (*ArticleTmplContext) Write ¶
func (a *ArticleTmplContext) Write(w http.ResponseWriter)
type DirTmplContext ¶
type DirTmplContext struct {
RootDirPath string
RootDirName string
// Pwdf means print working directory or file.
Pwdf []Path
Entries []File
LiveReload bool
}
func (*DirTmplContext) Write ¶
func (d *DirTmplContext) Write(w http.ResponseWriter)
Click to show internal directories.
Click to hide internal directories.