Documentation
¶
Index ¶
- func NewContext(_ *gin.Context, obj any, err error) any
- type Builder
- type BuilderWithLayout
- type Context
- type FuncMap
- type GinContext
- type Manager
- func (s *Manager[K]) Build(name string) *Template[K]
- func (s *Manager[K]) GetLayouts() ([]string, error)
- func (s *Manager[K]) GetPartials() ([]string, error)
- func (s *Manager[K]) Init() error
- func (s *Manager[K]) MustRegisterViews(pattern string) *Manager[K]
- func (s *Manager[K]) RegisterViews(pattern string) (m *Manager[K], err error)
- func (s *Manager[K]) RenderViewByNameAndLayout(name string, layout string) (string, error)
- func (s *Manager[K]) RenderViewByNameAndLayoutBody(name string, layout string) (string, error)
- func (s *Manager[K]) WithFuncs(f FuncMap) *Manager[K]
- func (s *Manager[K]) WithHelper(h any) *Manager[K]
- func (s *Manager[K]) WithLayout(name string) *BuilderWithLayout[K]
- type Template
- type View
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Builder ¶
type Builder[K GinContext] interface { Build(name string) *Template[K] }
type BuilderWithLayout ¶
type BuilderWithLayout[K GinContext] struct { // contains filtered or unexported fields }
func (*BuilderWithLayout[K]) Build ¶
func (s *BuilderWithLayout[K]) Build(name string) *Template[K]
type GinContext ¶
type Manager ¶
type Manager[K GinContext] struct { // contains filtered or unexported fields }
func NewManager ¶
func NewManager[K GinContext](re multitemplate.Renderer) *Manager[K]
func (*Manager[K]) GetLayouts ¶
func (*Manager[K]) GetPartials ¶
func (*Manager[K]) MustRegisterViews ¶
func (*Manager[K]) RegisterViews ¶
func (*Manager[K]) RenderViewByNameAndLayout ¶
func (*Manager[K]) RenderViewByNameAndLayoutBody ¶
func (*Manager[K]) WithHelper ¶
func (*Manager[K]) WithLayout ¶
func (s *Manager[K]) WithLayout(name string) *BuilderWithLayout[K]
type Template ¶
type Template[K GinContext] struct { // contains filtered or unexported fields }
func (*Template[K]) WithLayout ¶
func (*Template[K]) WithLayoutBody ¶
Click to show internal directories.
Click to hide internal directories.