template

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2014 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountTemplate

type AccountTemplate struct {
	*Template
}

func (*AccountTemplate) Show

func (t *AccountTemplate) Show(w io.Writer) error

type FunnelTemplate

type FunnelTemplate struct {
	*Template
	Funnel       *db.Funnel
	FunnelResult *db.FunnelResult
	Resources    []string
}

func (*FunnelTemplate) Edit

func (t *FunnelTemplate) Edit(w io.Writer) error

func (*FunnelTemplate) Show

func (t *FunnelTemplate) Show(w io.Writer) error

type FunnelsTemplate

type FunnelsTemplate struct {
	*Template
	Funnels []*db.Funnel
}

func (*FunnelsTemplate) Index

func (t *FunnelsTemplate) Index(w io.Writer) error

type Template

type Template struct {
	Session *sessions.Session
	User    *db.User
	Account *db.Account
}

func New

func New(s *sessions.Session, u *db.User, a *db.Account) *Template

func (*Template) Flash

func (t *Template) Flash(w io.Writer) error

func (*Template) Head

func (t *Template) Head(w io.Writer, title string) error

func (*Template) Index

func (t *Template) Index(w io.Writer) error

func (*Template) Login

func (t *Template) Login(w io.Writer) error

func (*Template) Nav

func (t *Template) Nav(w io.Writer) error

func (*Template) NotFound

func (t *Template) NotFound(w io.Writer) error

func (*Template) Signup

func (t *Template) Signup(w io.Writer) error

Jump to

Keyboard shortcuts

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