Documentation
¶
Index ¶
- func ListenAndServe(addr string, f Fragment) error
- func MakeDynamicContext(ctx context.Context) (context.Context, error)
- func Render(ctx context.Context, w io.Writer, frag Fragment) error
- func RequestFromContext(ctx context.Context) (*http.Request, bool)
- func WalkTree(ctx context.Context, frag Fragment) error
- type Class
- type DynamicFunc
- type Fragment
- type Group
- type Node
- type Text
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ListenAndServe ¶
Types ¶
type Fragment ¶
type Fragment interface { Children(ctx context.Context) ([]Fragment, error) Render(ctx context.Context, parent Node) error }
func Dynamic ¶
func Dynamic(handler DynamicFunc) Fragment
func NewHtmlFragment ¶
Click to show internal directories.
Click to hide internal directories.