Documentation
¶
Index ¶
- type C
- type T
- func (t *T) AddPageFooter(i int, md *m.MetaData)
- func (t *T) AddPageHeader(i int, md *m.MetaData)
- func (t *T) AddSectionHeader(s string)
- func (t *T) AddSnippet(s string)
- func (t *T) AddTableColumns(tabType string)
- func (t *T) AddTableHead(tabType string)
- func (t *T) RenderPage(dirName, fileName string, context C, minify bool) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type C ¶
type C interface {
}
C is the empty interface used for allowing the different page type structures (contexts) to use the same page generation function
type T ¶
type T struct {
// contains filtered or unexported fields
}
T contains the tempate snippets that get concatenated to create the page template
func (*T) AddPageFooter ¶
AddPageFooter adds the final snippet for generating the end of the page to create
func (*T) AddPageHeader ¶
AddPageHeader adds the initial snippet for the page to create (HTML head plus navigation menu bar)
func (*T) AddSectionHeader ¶
AddSectionHeader adds a section header for pages with multiple sections
func (*T) AddSnippet ¶
AddSnippet add a template snippet to the template source accumulator
func (*T) AddTableColumns ¶
AddTableColumns adds the snippet for the columns list for a table page (displayed columns depend on table type: table, view, etc.)
func (*T) AddTableHead ¶
AddTableHead adds the snippet for a table report header (based on the table type)