Documentation
¶
Overview ¶
Package presentation provides the presentation layer components and their dependency injection setup.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Module = fx.Module("presentation", fx.Provide( fx.Annotate( NewRenderer, fx.As(new(view.Renderer)), ), ), )
Module provides all presentation layer dependencies
Functions ¶
func NewRenderer ¶
func NewRenderer(deps Dependencies) (view.Renderer, error)
NewRenderer creates a new view renderer
Types ¶
type Dependencies ¶
Dependencies contains all presentation layer dependencies
func (*Dependencies) Validate ¶
func (d *Dependencies) Validate() error
Validate checks if all required dependencies are present
Directories
¶
| Path | Synopsis |
|---|---|
|
templates
|
|
|
pages
Package pages provides page-level template components.
|
Package pages provides page-level template components. |
|
shared
Package shared provides common utilities and helper functions for use across template components and presentation layer.
|
Package shared provides common utilities and helper functions for use across template components and presentation layer. |
|
Package view provides types and utilities for rendering page data and templates.
|
Package view provides types and utilities for rendering page data and templates. |
Click to show internal directories.
Click to hide internal directories.