Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Path = "assets/templates"
Path defines the root at which to look for templates.
Functions ¶
Types ¶
type CommonData ¶
CommonData is a block of data that is common to any page
type DataBlock ¶
type DataBlock interface{}
DataBlock defines a block of data that can be loaded into a page template. Included for making code easier to read.
type SurveyData ¶
type SurveyData struct {
CommonData
SurveyJS template.JS
Survey survey.Survey
}
SurveyData is a block of data to be interpolated into a survey page
type SurveyListData ¶
type SurveyListData struct {
CommonData
AdminData
Surveys []*survey.Survey
}
SurveyListData is a block of data to be interpolated into a page listing a set of surveys
Click to show internal directories.
Click to hide internal directories.