Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChrootLoader ¶
type ChrootLoader struct {
Path string
}
ChrootLoader is a pong2 compatible file loader which restricts all accesses to a directory.
func (ChrootLoader) Abs ¶
func (l ChrootLoader) Abs(base string, name string) string
Abs resolves a filename relative to the base directory. Absolute paths are allowed. When there's no base dir set, the absolute path to the filename will be calculated based on either the provided base directory (which might be a path of a template which includes another template) or the current working directory.
Click to show internal directories.
Click to hide internal directories.