Documentation ¶
Index ¶
- Constants
- type CFeature
- func (f *CFeature) Build(b feature.Buildable) (err error)
- func (f *CFeature) Init(this interface{})
- func (f *CFeature) Make() (feat Feature)
- func (f *CFeature) NewHtmlTemplateFromContext(t feature.Theme, view string, ctx context.Context) (tt *htmlTemplate.Template, err error)
- func (f *CFeature) NewHtmlTemplateWith(t feature.Theme, name string, ctx context.Context) (tmpl *htmlTemplate.Template, err error)
- func (f *CFeature) NewTextTemplateFromContext(t feature.Theme, view string, ctx context.Context) (tt *textTemplate.Template, err error)
- func (f *CFeature) NewTextTemplateWith(t feature.Theme, name string, ctx context.Context) (tmpl *textTemplate.Template, err error)
- func (f *CFeature) PrepareRenderPage(t feature.Theme, ctx clContext.Context, p feature.Page) (data htmlTemplate.HTML, redirect string, err error)
- func (f *CFeature) Render(t feature.Theme, view string, ctx clContext.Context) (data []byte, err error)
- func (f *CFeature) RenderHtmlTemplateContent(t feature.Theme, ctx context.Context, tmplContent string) (rendered string, err error)
- func (f *CFeature) RenderPage(t feature.Theme, ctx clContext.Context, p feature.Page) (data []byte, redirect string, err error)
- func (f *CFeature) RenderTextTemplateContent(t feature.Theme, ctx context.Context, tmplContent string) (rendered string, err error)
- func (f *CFeature) Startup(ctx *cli.Context) (err error)
- type Feature
- type MakeFeature
Constants ¶
View Source
const Tag feature.Tag = "srv-theme-renderer"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CFeature ¶
func (*CFeature) NewHtmlTemplateFromContext ¶
func (*CFeature) NewHtmlTemplateWith ¶
func (*CFeature) NewTextTemplateFromContext ¶
func (*CFeature) NewTextTemplateWith ¶
func (*CFeature) PrepareRenderPage ¶ added in v0.5.0
func (*CFeature) RenderHtmlTemplateContent ¶
func (*CFeature) RenderPage ¶
func (*CFeature) RenderTextTemplateContent ¶
type MakeFeature ¶
type MakeFeature interface {
Make() Feature
}
func New ¶
func New() MakeFeature
func NewTagged ¶
func NewTagged(tag feature.Tag) MakeFeature
Click to show internal directories.
Click to hide internal directories.