renderer

package
v0.7.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 8, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const Tag feature.Tag = "srv-theme-renderer"

Variables

This section is empty.

Functions

This section is empty.

Types

type CFeature

type CFeature struct {
	feature.CFeature
}

func (*CFeature) Build

func (f *CFeature) Build(b feature.Buildable) (err error)

func (*CFeature) Init

func (f *CFeature) Init(this interface{})

func (*CFeature) Make

func (f *CFeature) Make() (feat Feature)

func (*CFeature) NewHtmlTemplateFromContext

func (f *CFeature) NewHtmlTemplateFromContext(t feature.Theme, view string, ctx context.Context) (tt *htmlTemplate.Template, err error)

func (*CFeature) NewHtmlTemplateWith

func (f *CFeature) NewHtmlTemplateWith(t feature.Theme, name string, ctx context.Context) (tmpl *htmlTemplate.Template, err error)

func (*CFeature) NewTextTemplateFromContext

func (f *CFeature) NewTextTemplateFromContext(t feature.Theme, view string, ctx context.Context) (tt *textTemplate.Template, err error)

func (*CFeature) NewTextTemplateWith

func (f *CFeature) NewTextTemplateWith(t feature.Theme, name string, ctx context.Context) (tmpl *textTemplate.Template, err error)

func (*CFeature) PrepareRenderPage added in v0.5.0

func (f *CFeature) PrepareRenderPage(t feature.Theme, ctx clContext.Context, p feature.Page) (data htmlTemplate.HTML, redirect string, err error)

func (*CFeature) Render

func (f *CFeature) Render(t feature.Theme, view string, ctx clContext.Context) (data []byte, err error)

func (*CFeature) RenderHtmlTemplateContent

func (f *CFeature) RenderHtmlTemplateContent(t feature.Theme, ctx context.Context, tmplContent string) (rendered string, err error)

func (*CFeature) RenderPage

func (f *CFeature) RenderPage(t feature.Theme, ctx clContext.Context, p feature.Page) (data []byte, redirect string, err error)

func (*CFeature) RenderTextTemplateContent

func (f *CFeature) RenderTextTemplateContent(t feature.Theme, ctx context.Context, tmplContent string) (rendered string, err error)

func (*CFeature) Startup

func (f *CFeature) Startup(ctx *cli.Context) (err error)

type Feature

type Feature interface {
	feature.Feature
	feature.ThemeRenderer
}

type MakeFeature

type MakeFeature interface {
	Make() Feature
}

func New

func New() MakeFeature

func NewTagged

func NewTagged(tag feature.Tag) MakeFeature

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL