render

package
v0.0.0-...-9831a62 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2021 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Templates

type Templates struct {
	// contains filtered or unexported fields
}

func Load

func Load(fs bool) *Templates

func (*Templates) Item

func (t *Templates) Item(w io.Writer, item *items.Item) error

func (*Templates) LoginPage

func (t *Templates) LoginPage(w io.Writer, err error) error

func (*Templates) Reader

func (t *Templates) Reader(w io.Writer, item *items.Item) error

func (*Templates) SignupPage

func (t *Templates) SignupPage(w io.Writer, err error) error

func (*Templates) Subscription

func (t *Templates) Subscription(w io.Writer, subscription *subscriptions.Subscription) error

func (*Templates) Tag

func (t *Templates) Tag(w io.Writer, tag *tags.Tag, ss []*subscriptions.Subscription) error

func (*Templates) UsersPage

func (t *Templates) UsersPage(w io.Writer, data *UsersData) error

type UsersData

type UsersData struct {
	Item          *items.Item
	Items         []*items.Item
	Subscriptions []*subscriptions.Subscription
	Tags          []*UsersTag
	URL           *url.URL
}

type UsersTag

type UsersTag struct {
	Tag           *tags.Tag
	Subscriptions []*subscriptions.Subscription
}

Jump to

Keyboard shortcuts

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