Documentation
¶
Index ¶
- func ParseContent(content []byte, sep string) ([]byte, []byte)
- type Page
- type Parser
- type SiteGen
- func (sg *SiteGen) Build(path string) error
- func (sg *SiteGen) BuildAll(reload bool) (map[string]int, error)
- func (sg *SiteGen) ClearCache()
- func (sg *SiteGen) Data(name string) interface{}
- func (sg *SiteGen) GetSources(prop string, pattern string) []*Source
- func (sg *SiteGen) LoadTemplate(t string) error
- func (sg *SiteGen) LocalToPath(s *Source) string
- func (sg *SiteGen) NewSource(path string, gen bool) (*Source, error)
- func (sg *SiteGen) Path(path string) string
- func (sg *SiteGen) Remove(path string) error
- func (sg *SiteGen) SourceList() []*Source
- type Source
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type SiteGen ¶
type SiteGen struct {
SitePath string
TemplateDir string
DataDir string
PublicPath string
BasePath string
SourceDir string
Minify *minify.M
Webp bool
Clean bool
Dev bool
BuildID string
TplCache map[string]*texttemplate.Template
// contains filtered or unexported fields
}
SiteGen is an instance of generator
func NewSiteGen ¶
func (*SiteGen) ClearCache ¶
func (sg *SiteGen) ClearCache()
func (*SiteGen) LoadTemplate ¶
LoadTemplate parses all templates of a specific type (ext) and stores them in cache
func (*SiteGen) LocalToPath ¶
func (*SiteGen) SourceList ¶
Click to show internal directories.
Click to hide internal directories.