views

package
v0.0.0-...-5158b4c Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2017 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Domesticated Apricot - An open source member and event management platform

Copyright (C) 2017  Sam Schurter

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.

Domesticated Apricot - An open source member and event management platform

Copyright (C) 2017  Sam Schurter

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LayoutFiles

func LayoutFiles() []string

func UserFiles

func UserFiles() []string

Types

type Page

type Page struct {
	Template *template.Template
	Layout   string
}

func (*Page) Render

func (self *Page) Render(w http.ResponseWriter, data interface{}) error

type UserView

type UserView struct {
	View
}
var User UserView

type View

type View struct {
	Index Page
	Show  Page
	New   Page
	Edit  Page
}

generic defaults pages for each controller

Jump to

Keyboard shortcuts

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