Documentation ¶
Index ¶
- type Meta
- type Theme
- func (th *Theme) Dir() string
- func (th *Theme) Execute(w io.Writer, name string, data interface{}) error
- func (th *Theme) Func(key string, fn interface{})
- func (th *Theme) Funcs() template.FuncMap
- func (th *Theme) Load() error
- func (th *Theme) Static() string
- func (th *Theme) StaticDir() string
- func (th *Theme) Template(name string) *template.Template
- func (th *Theme) Validate() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Meta ¶
type Meta struct { Name string `toml:"name" ini:"name"` Repo string `toml:"repo" ini:"repo"` URL string `toml:"url" ini:"url"` Date string `toml:"date" ini:"date"` Desc string `toml:"desc" ini:"desc"` Tags []string `toml:"tags" ini:"-"` MinVersion string `toml:"min_version" ini:"min_version"` Authors []*model.Author `toml:"author" ini:"-"` Refs []*metaRef `toml:"ref" ini:"-"` License string `toml:"license" ini:"license"` LicenseURL string `toml:"license_url" ini:"license_url"` }
Meta is description of theme
type Theme ¶
type Theme struct { Meta *Meta // contains filtered or unexported fields }
Theme object, maintains a sort of templates for whole site data
Click to show internal directories.
Click to hide internal directories.