Documentation ¶
Index ¶
- Constants
- Variables
- func NewMdModifier(r bf.Renderer) bf.Renderer
- type ContentRenderer
- type Entries
- type Entry
- func (e *Entry) Active() bool
- func (a *Entry) Author() string
- func (e *Entry) Context(c int) Entries
- func (e *Entry) Date() time.Time
- func (e *Entry) ExtraScript() []string
- func (e *Entry) ExtraStyle() []string
- func (e *Entry) HTML() template.HTML
- func (e *Entry) IsArticle() bool
- func (e *Entry) IsIndex() bool
- func (e *Entry) Link() string
- func (e *Entry) Next() *Entry
- func (e *Entry) Prev() *Entry
- func (e *Entry) Priority() int
- func (e *Entry) Title() string
- type GCTime
- type Meta
- type Page
- type StaticHandler
Constants ¶
View Source
const GCTimeLayout = "2006-01-02 15:04"
View Source
const (
PSep = string(os.PathSeparator)
)
Variables ¶
View Source
var (
ErrHidden = errors.New("Hidden")
)
Functions ¶
Types ¶
type ContentRenderer ¶
type Entry ¶
type Entry struct {
// contains filtered or unexported fields
}
func (*Entry) ExtraScript ¶
func (*Entry) ExtraStyle ¶
type StaticHandler ¶
type StaticHandler struct {
// contains filtered or unexported fields
}
The StaticHandler behaves like http.ServeContent without directoy listings. It also implements the http.Filesystem interface.
func NewStaticHandler ¶
func NewStaticHandler(fs http.FileSystem) StaticHandler
Serves all files from fs.
func (StaticHandler) Cd ¶
func (sh StaticHandler) Cd(path string) StaticHandler
Return a new StaticHandler with new root directory.
func (StaticHandler) Open ¶
func (sh StaticHandler) Open(name string) (http.File, error)
Implement the http.Filesystem interface.
func (StaticHandler) ServeHTTP ¶
func (sh StaticHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
Serve the file requestet by r. Error 404 on directory access.
Click to show internal directories.
Click to hide internal directories.