Documentation
¶
Index ¶
- func Dict(values ...interface{}) (map[string]interface{}, error)
- func FolderContent(w http.ResponseWriter, r *http.Request, data *[]DisplayEntry)
- func Footer(w http.ResponseWriter)
- func IncludeCSS(path string) template.CSS
- func IncludeHTML(path string) template.HTML
- func IncludeJS(path string) template.JS
- func Index(w http.ResponseWriter, indexView *IndexView)
- func NewTemplate() *template.Template
- type Category
- type DisplayEntry
- type IndexView
- type ViewCategory
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FolderContent ¶
func FolderContent(w http.ResponseWriter, r *http.Request, data *[]DisplayEntry)
func Footer ¶
func Footer(w http.ResponseWriter)
func IncludeCSS ¶
func IncludeHTML ¶
func Index ¶
func Index(w http.ResponseWriter, indexView *IndexView)
func NewTemplate ¶
Types ¶
type DisplayEntry ¶
type DisplayEntry struct { Name string EntryType types.EntryType UrlString string FirstName string LastName string // File extension string if it's a file, or "/" if it's a folder IsCover bool IsThumbnail bool ModTimeString string ModTimeUnix int64 SizeString string SizeInt int64 HasThumbnail string }
type IndexView ¶
type IndexView struct { Title string Dir string Breadcrumb []mypath.BreadcrumbLevel Categories []Category }
type ViewCategory ¶
type ViewCategory string
const ( Default ViewCategory = "default" ImageVideo ViewCategory = "image_and_video" Music ViewCategory = "music" )
func (ViewCategory) String ¶
func (v ViewCategory) String() string
func (ViewCategory) TemplateName ¶
func (v ViewCategory) TemplateName() string
Click to show internal directories.
Click to hide internal directories.