Documentation
¶
Index ¶
- func Asset(ctx context.Context, name string) string
- func Main(configurer Configurer)
- type ConfigureFunc
- type Configurer
- type RenderFunc
- type Renderer
- type Site
- func (s *Site) Asset(name string) string
- func (s *Site) Build(ctx context.Context) error
- func (s *Site) Configure(configurer Configurer)
- func (s *Site) ConfigureFunc(configurer func(ctx context.Context, s *Site) error)
- func (s *Site) Render(path string, renderer Renderer)
- func (s *Site) RenderFunc(path string, renderer func(ctx context.Context, w io.Writer) error)
- func (s *Site) Run(command string)
- func (s *Site) Serve(addr string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Main ¶
func Main(configurer Configurer)
Types ¶
type ConfigureFunc ¶
type RenderFunc ¶
type Site ¶
type Site struct {
OutputDir string
PublicDir string
AssetsDir string
// contains filtered or unexported fields
}
func SiteFromContext ¶
func (*Site) Configure ¶
func (s *Site) Configure(configurer Configurer)
func (*Site) ConfigureFunc ¶
func (*Site) RenderFunc ¶
Click to show internal directories.
Click to hide internal directories.