Documentation ¶
Index ¶
- type BaseController
- type ContentController
- func (ctrl *ContentController) Create(c context.Context) error
- func (ctrl *ContentController) New(c context.Context) error
- func (ctrl *ContentController) Preview(c context.Context) error
- func (ctrl *ContentController) Publish(c context.Context) error
- func (ctrl *ContentController) Read(key string, c context.Context) error
- func (ctrl *ContentController) ReadMany(c context.Context) error
- type FilesController
- type SitesController
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseController ¶
type BaseController struct{}
func (*BaseController) FormGroupClose ¶
type ContentController ¶
type ContentController struct {
BaseController
}
This controller is poorly named, but it manages both content and pages Content are the versioned entities Pages hold the current view and metadata
func (*ContentController) New ¶
func (ctrl *ContentController) New(c context.Context) error
Show the markdown editor form
func (*ContentController) Publish ¶
func (ctrl *ContentController) Publish(c context.Context) error
1. Save to datastore 2. Save rendered template to cloud storage 3. Redirect user to new URL
type FilesController ¶
type FilesController struct {
BaseController
}
type SitesController ¶
type SitesController struct {
BaseController
}
func (*SitesController) Delete ¶
func (ctrl *SitesController) Delete(key string, c context.Context) error
Click to show internal directories.
Click to hide internal directories.