html

package
v32.3.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2019 License: MIT Imports: 13 Imported by: 4

Documentation

Overview

Package html is shared HTML rendering components that are shared by the other packages.

Package html is shared HTML rendering components that are shared by the other packages.

Index

Constants

View Source
const (
	IndividualMaleColor   = "#0275d8"
	IndividualFemaleColor = "#d9534f"
)
View Source
const (
	DiffPageShowAll         = "all" // default
	DiffPageShowOnlyMatches = "only-matches"
	DiffPageShowSubset      = "subset"
)

These are used for optionShow. If you update these options you will also need to adjust validateOptions.

View Source
const (
	DiffPageSortWrittenName       = "written-name" // default
	DiffPageSortHighestSimilarity = "highest-similarity"
)

These are used for optionSort. If you update these options you will also need to adjust validateOptions.

View Source
const (
	QuarterRow = 3
	HalfRow    = 6
	EntireRow  = 12
)
View Source
const UnknownEmphasis = "<em>Unknown</em>"

Variables

This section is empty.

Functions

func GetIndexLetters

func GetIndexLetters(document *gedcom.Document) []rune

func GetIndividuals

func GetIndividuals(document *gedcom.Document) map[string]*gedcom.IndividualNode

func GetPlaces

func GetPlaces(document *gedcom.Document) map[string]*place

func PageFamilies

func PageFamilies() string

func PageIndividual

func PageIndividual(document *gedcom.Document, individual *gedcom.IndividualNode) string

func PageIndividuals

func PageIndividuals(firstLetter rune) string

func PagePlace

func PagePlace(document *gedcom.Document, place string) string

func PagePlaces

func PagePlaces() string

func PageSource

func PageSource(source *gedcom.SourceNode) string

func PageSources

func PageSources() string

func PageStatistics

func PageStatistics() string

func PageSurnames

func PageSurnames() string

Types

type Age

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

func NewAge

func NewAge(start, end gedcom.Age) *Age

func (*Age) WriteTo

func (c *Age) WriteTo(w io.Writer) (int64, error)

type AllParentButtons

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

AllParentButtons represent one or more families that an individual belongs to. These are show as large buttons above the large name of the person in on their individual page.

func NewAllParentButtons

func NewAllParentButtons(document *gedcom.Document, individual *gedcom.IndividualNode) *AllParentButtons

func (*AllParentButtons) WriteTo

func (c *AllParentButtons) WriteTo(w io.Writer) (int64, error)

type Anchor

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

func NewAnchor

func NewAnchor(name string) *Anchor

func (*Anchor) WriteTo

func (c *Anchor) WriteTo(w io.Writer) (int64, error)

type BadgePill

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

BadgePill is a rounded badge that contains a value.

func NewBadgePill

func NewBadgePill(color, class string, value Component) *BadgePill

func (*BadgePill) WriteTo

func (c *BadgePill) WriteTo(w io.Writer) (int64, error)

type BigTitle

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

func NewBigTitle

func NewBigTitle(size int, text Component) *BigTitle

func (*BigTitle) WriteTo

func (c *BigTitle) WriteTo(w io.Writer) (int64, error)

type Card

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

Card is a simple box with a header and body section.

func NewCard

func NewCard(title string, count int, body Component) *Card

func (*Card) WriteTo

func (c *Card) WriteTo(w io.Writer) (int64, error)

type Column

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

Column is used inside of a row. The row consists of 12 virtual columns and each column can specify how many of the columns it represents.

func NewColumn

func NewColumn(width int, body Component) *Column

func (*Column) WriteTo

func (c *Column) WriteTo(w io.Writer) (int64, error)

type Component

type Component interface {
	io.WriterTo
}

type Components

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

Components is a wrapper for zero more components that rendered at the same time.

func NewComponents

func NewComponents(items ...Component) *Components

func (*Components) WriteTo

func (c *Components) WriteTo(w io.Writer) (int64, error)

type CountBadge

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

CountBadge shows a pill badge containing an integer. The appropriate localization will be applied (like a thousands separator).

func NewCountBadge

func NewCountBadge(value int) *CountBadge

func (*CountBadge) WriteTo

func (c *CountBadge) WriteTo(w io.Writer) (int64, error)

type DiffPage

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

func NewDiffPage

func NewDiffPage(comparisons gedcom.IndividualComparisons, filterFlags *util.FilterFlags, googleAnalyticsID string, show, sort string) *DiffPage

func (*DiffPage) WriteTo

func (c *DiffPage) WriteTo(w io.Writer) (int64, error)

type DiffRow

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

func NewDiffRow

func NewDiffRow(name string, nd *gedcom.NodeDiff, hideSame bool) *DiffRow

func (*DiffRow) WriteTo

func (c *DiffRow) WriteTo(w io.Writer) (int64, error)

type Div

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

Div is a <div> tag with a class.

func NewDiv

func NewDiv(class string, body Component) *Div

func (*Div) WriteTo

func (c *Div) WriteTo(w io.Writer) (int64, error)

type Empty

type Empty struct{}

Empty is used a placeholder for a component where nothing should be visible.

func NewEmpty

func NewEmpty() *Empty

func (*Empty) WriteTo

func (c *Empty) WriteTo(w io.Writer) (int64, error)

type EventDate

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

EventDate shows a date like "d. 1882" but will not show anything if the date is not provided.

func NewEventDate

func NewEventDate(event string, dates []*gedcom.DateNode) *EventDate

func (*EventDate) IsBlank

func (c *EventDate) IsBlank() bool

func (*EventDate) WriteTo

func (c *EventDate) WriteTo(w io.Writer) (int64, error)

type EventDates

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

EventDates contains several eventDate instances that are separated by three spaces. Only the dates that are non-empty will be shown.

func NewEventDates

func NewEventDates(items []*EventDate) *EventDates

func (*EventDates) WriteTo

func (c *EventDates) WriteTo(w io.Writer) (int64, error)

type EventStatistics

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

func NewEventStatistics

func NewEventStatistics(document *gedcom.Document) *EventStatistics

func (*EventStatistics) WriteTo

func (c *EventStatistics) WriteTo(w io.Writer) (int64, error)

type FamilyInList

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

func NewFamilyInList

func NewFamilyInList(document *gedcom.Document, family *gedcom.FamilyNode) *FamilyInList

func (*FamilyInList) WriteTo

func (c *FamilyInList) WriteTo(w io.Writer) (int64, error)

type FamilyListPage

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

func NewFamilyListPage

func NewFamilyListPage(document *gedcom.Document, googleAnalyticsID string, options PublishShowOptions) *FamilyListPage

func (*FamilyListPage) WriteTo

func (c *FamilyListPage) WriteTo(w io.Writer) (int64, error)

type FamilyStatistics

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

func NewFamilyStatistics

func NewFamilyStatistics(document *gedcom.Document) *FamilyStatistics

func (*FamilyStatistics) WriteTo

func (c *FamilyStatistics) WriteTo(w io.Writer) (int64, error)

type FooterRow

type FooterRow struct{}

FooterRow appears on all pages at the bottom.

func NewFooterRow

func NewFooterRow() *FooterRow

func (*FooterRow) WriteTo

func (c *FooterRow) WriteTo(w io.Writer) (int64, error)

type GoogleAnalytics

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

func NewGoogleAnalytics

func NewGoogleAnalytics(id string) *GoogleAnalytics

func (*GoogleAnalytics) WriteTo

func (c *GoogleAnalytics) WriteTo(w io.Writer) (int64, error)

type HTML

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

func NewHTML

func NewHTML(s string) *HTML

func (*HTML) WriteTo

func (c *HTML) WriteTo(w io.Writer) (int64, error)

type Heading

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

Heading is larger text.

func NewHeading

func NewHeading(number int, class string, body Component) *Heading

func (*Heading) WriteTo

func (c *Heading) WriteTo(w io.Writer) (int64, error)

type HorizontalRule

type HorizontalRule struct{}

HorizontalRule is a dividing line.

func NewHorizontalRule

func NewHorizontalRule() *HorizontalRule

func (*HorizontalRule) WriteTo

func (c *HorizontalRule) WriteTo(w io.Writer) (int64, error)

type HorizontalRuleRow

type HorizontalRuleRow struct{}

HorizontalRuleRow is a dividing line.

func NewHorizontalRuleRow

func NewHorizontalRuleRow() *HorizontalRuleRow

func (*HorizontalRuleRow) WriteTo

func (c *HorizontalRuleRow) WriteTo(w io.Writer) (int64, error)

type IndividualAdditionalNames

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

IndividualAdditionalNames is shown on the individual page. It shows all of the extra names (except the primary name) and their type.

func NewIndividualAdditionalNames

func NewIndividualAdditionalNames(individual *gedcom.IndividualNode) *IndividualAdditionalNames

func (*IndividualAdditionalNames) WriteTo

func (c *IndividualAdditionalNames) WriteTo(w io.Writer) (int64, error)

type IndividualButton

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

IndividualButton is a large coloured button that links to an individuals page. It contains the same and some date information. This is also used to represent unknown or missing individuals.

func NewIndividualButton

func NewIndividualButton(document *gedcom.Document, individual *gedcom.IndividualNode) *IndividualButton

func (*IndividualButton) WriteTo

func (c *IndividualButton) WriteTo(w io.Writer) (int64, error)

type IndividualCompare

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

func NewIndividualCompare

func NewIndividualCompare(comparison *gedcom.IndividualComparison, filterFlags *util.FilterFlags) *IndividualCompare

func (*IndividualCompare) WriteTo

func (c *IndividualCompare) WriteTo(w io.Writer) (int64, error)

type IndividualDates

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

func NewIndividualDates

func NewIndividualDates(individual *gedcom.IndividualNode, showLiving bool) *IndividualDates

func (*IndividualDates) EventDates

func (c *IndividualDates) EventDates() []*EventDate

func (*IndividualDates) IsBlank

func (c *IndividualDates) IsBlank() bool

func (*IndividualDates) WriteTo

func (c *IndividualDates) WriteTo(w io.Writer) (int64, error)

type IndividualEvent

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

IndividualEvent is a row in the "Events" section of the individuals page.

func NewIndividualEvent

func NewIndividualEvent(date, place string, description Component, individual *gedcom.IndividualNode, event gedcom.Node) *IndividualEvent

func (*IndividualEvent) WriteTo

func (c *IndividualEvent) WriteTo(w io.Writer) (int64, error)

type IndividualEvents

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

IndividualEvents is the table of events show in the "Events" section of the individuals page.

func (*IndividualEvents) WriteTo

func (c *IndividualEvents) WriteTo(w io.Writer) (int64, error)

type IndividualInList

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

IndividualInList is a single row in the table of individuals on the list page.

func NewIndividualInList

func NewIndividualInList(document *gedcom.Document, individual *gedcom.IndividualNode) *IndividualInList

func (*IndividualInList) WriteTo

func (c *IndividualInList) WriteTo(w io.Writer) (int64, error)

type IndividualIndexHeader

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

func NewIndividualIndexHeader

func NewIndividualIndexHeader(document *gedcom.Document, selectedLetter rune) *IndividualIndexHeader

func (*IndividualIndexHeader) WriteTo

func (c *IndividualIndexHeader) WriteTo(w io.Writer) (int64, error)

type IndividualIndexLetter

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

func NewIndividualIndexLetter

func NewIndividualIndexLetter(letter rune, isSelected bool) *IndividualIndexLetter

func (*IndividualIndexLetter) WriteTo

func (c *IndividualIndexLetter) WriteTo(w io.Writer) (int64, error)
type IndividualLink struct {
	// contains filtered or unexported fields
}

IndividualLink is a hyperlink to an individuals page. The link contains a coloured dot to represent their sex and their full name.

func NewIndividualLink(document *gedcom.Document, individual *gedcom.IndividualNode) *IndividualLink

func (*IndividualLink) WriteTo

func (c *IndividualLink) WriteTo(w io.Writer) (int64, error)

type IndividualListPage

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

IndividualListPage is the page that lists of all the individuals.

func NewIndividualListPage

func NewIndividualListPage(document *gedcom.Document, selectedLetter rune, googleAnalyticsID string, options PublishShowOptions) *IndividualListPage

func (*IndividualListPage) WriteTo

func (c *IndividualListPage) WriteTo(w io.Writer) (int64, error)

type IndividualName

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

IndividualName outputs the full name of the individual. This is a wrapper for the String function on the IndividualNode. If the individual does not have any names then "Unknown" will be used. It is safe to use nil for the individual.

func NewIndividualName

func NewIndividualName(individual *gedcom.IndividualNode, showLiving bool, unknownHTML string) *IndividualName

func (*IndividualName) IsUnknown

func (c *IndividualName) IsUnknown() bool

func (*IndividualName) WriteTo

func (c *IndividualName) WriteTo(w io.Writer) (int64, error)

type IndividualNameAndDates

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

func NewIndividualNameAndDates

func NewIndividualNameAndDates(individual *gedcom.IndividualNode, showLiving bool, unknownText string) *IndividualNameAndDates

func (*IndividualNameAndDates) WriteTo

func (c *IndividualNameAndDates) WriteTo(w io.Writer) (int64, error)
type IndividualNameAndDatesLink struct {
	// contains filtered or unexported fields
}
func NewIndividualNameAndDatesLink(individual *gedcom.IndividualNode, showLiving bool, unknownText string) *IndividualNameAndDatesLink

func (*IndividualNameAndDatesLink) WriteTo

func (c *IndividualNameAndDatesLink) WriteTo(w io.Writer) (int64, error)

type IndividualNameAndSex

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

IndividualNameAndSex shows the name parts and sex of an individual in the "Name & Sex" section of the individuals page.

func NewIndividualNameAndSex

func NewIndividualNameAndSex(individual *gedcom.IndividualNode) *IndividualNameAndSex

func (*IndividualNameAndSex) WriteTo

func (c *IndividualNameAndSex) WriteTo(w io.Writer) (int64, error)

type IndividualPage

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

IndividualPage is the page that shows detailed information about an individual.

func NewIndividualPage

func NewIndividualPage(document *gedcom.Document, individual *gedcom.IndividualNode, googleAnalyticsID string, options PublishShowOptions) *IndividualPage

func (*IndividualPage) WriteTo

func (c *IndividualPage) WriteTo(w io.Writer) (int64, error)

type IndividualStatistics

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

func NewIndividualStatistics

func NewIndividualStatistics(document *gedcom.Document) *IndividualStatistics

func (*IndividualStatistics) WriteTo

func (c *IndividualStatistics) WriteTo(w io.Writer) (int64, error)

type KeyedTableRow

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

KeyedTableRow is a table row consisting of two columns where the left column is a header and a key for the data in the right column. It also allows the row to be hidden altogether if needed.

func NewKeyedTableRow

func NewKeyedTableRow(title string, value Component, visible bool) *KeyedTableRow

func (*KeyedTableRow) WriteTo

func (c *KeyedTableRow) WriteTo(w io.Writer) (int64, error)

type LineBreak

type LineBreak struct{}

func NewLineBreak

func NewLineBreak() *LineBreak

func (*LineBreak) WriteTo

func (c *LineBreak) WriteTo(w io.Writer) (int64, error)

type Lines

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

func NewLines

func NewLines(lines ...Component) *Lines

func (*Lines) WriteTo

func (c *Lines) WriteTo(w io.Writer) (int64, error)
type Link struct {
	// contains filtered or unexported fields
}
func NewLink(body Component, dest string) *Link

func (*Link) Style

func (c *Link) Style(style string) *Link

func (*Link) WriteTo

func (c *Link) WriteTo(w io.Writer) (int64, error)
type NavItem struct {
	// contains filtered or unexported fields
}

NavItem is a single tab in the tab bar.

func NewNavItem

func NewNavItem(content Component, isActive bool, href string) *NavItem
func (c *NavItem) WriteTo(w io.Writer) (int64, error)
type NavLink struct {
	// contains filtered or unexported fields
}
func NewNavLink(text, link string, isSelected bool) *NavLink
func (c *NavLink) WriteTo(w io.Writer) (int64, error)
type NavPills struct {
	// contains filtered or unexported fields
}

func NewNavPills

func NewNavPills(links []Component) *NavPills
func (c *NavPills) WriteTo(w io.Writer) (int64, error)
type NavPillsRow struct {
	// contains filtered or unexported fields
}

func NewNavPillsRow

func NewNavPillsRow(links []Component) *NavPillsRow
func (c *NavPillsRow) WriteTo(w io.Writer) (int64, error)
type NavTabs struct {
	// contains filtered or unexported fields
}

NavTabs is a group of tabs.

func NewNavTabs

func NewNavTabs(items []*NavItem) *NavTabs
func (c *NavTabs) WriteTo(w io.Writer) (int64, error)

type Number

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

func NewNumber

func NewNumber(value int) *Number

func (*Number) WriteTo

func (c *Number) WriteTo(w io.Writer) (int64, error)

type Octicon

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

func NewOcticon

func NewOcticon(name, style string) *Octicon

func (*Octicon) WriteTo

func (c *Octicon) WriteTo(w io.Writer) (int64, error)

type Page

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

Page is the entire page wrapped that provides the HTML head and body.

func NewPage

func NewPage(title string, body Component, googleAnalyticsID string) *Page

func (*Page) WriteTo

func (c *Page) WriteTo(w io.Writer) (int64, error)

type ParentButtons

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

ParentButtons show two buttons separated by a "T" to be placed above the large individuals name.

func NewParentButtons

func NewParentButtons(document *gedcom.Document, family *gedcom.FamilyNode) *ParentButtons

func (*ParentButtons) WriteTo

func (c *ParentButtons) WriteTo(w io.Writer) (int64, error)

type PartnersAndChildren

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

PartnersAndChildren show the partners and/or children connected to the individual on their individual page.

func NewPartnersAndChildren

func NewPartnersAndChildren(document *gedcom.Document, individual *gedcom.IndividualNode) *PartnersAndChildren

func (*PartnersAndChildren) WriteTo

func (c *PartnersAndChildren) WriteTo(w io.Writer) (int64, error)

type PlaceEvent

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

func NewPlaceEvent

func NewPlaceEvent(document *gedcom.Document, node gedcom.Node) *PlaceEvent

func (*PlaceEvent) WriteTo

func (c *PlaceEvent) WriteTo(w io.Writer) (int64, error)

type PlaceInList

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

func NewPlaceInList

func NewPlaceInList(document *gedcom.Document, place *place) *PlaceInList

func (*PlaceInList) WriteTo

func (c *PlaceInList) WriteTo(w io.Writer) (int64, error)
type PlaceLink struct {
	// contains filtered or unexported fields
}
func NewPlaceLink(document *gedcom.Document, place string) *PlaceLink

func (*PlaceLink) WriteTo

func (c *PlaceLink) WriteTo(w io.Writer) (int64, error)

type PlaceListPage

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

PlaceListPage lists all places.

func NewPlaceListPage

func NewPlaceListPage(document *gedcom.Document, googleAnalyticsID string, options PublishShowOptions) *PlaceListPage

func (*PlaceListPage) WriteTo

func (c *PlaceListPage) WriteTo(w io.Writer) (int64, error)

type PlacePage

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

func NewPlacePage

func NewPlacePage(document *gedcom.Document, placeKey string, googleAnalyticsID string, options PublishShowOptions) *PlacePage

func (*PlacePage) WriteTo

func (c *PlacePage) WriteTo(w io.Writer) (int64, error)

type PlaceStatistics

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

func (*PlaceStatistics) WriteTo

func (c *PlaceStatistics) WriteTo(w io.Writer) (int64, error)

type PlusSVG

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

PlusSVG draws a "+" as an SVG with each line of the "+" being optional.

func NewPlusSVG

func NewPlusSVG(top, left, right, bottom bool) *PlusSVG

func (*PlusSVG) WriteTo

func (c *PlusSVG) WriteTo(w io.Writer) (int64, error)

type PublishHeader

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

PublishHeader is the tabbed section at the top of each page. The PublishHeader will be the same on all pages except that some pages will use an extra tab for that page.

func NewPublishHeader

func NewPublishHeader(document *gedcom.Document, extraTab string, selectedTab string, options PublishShowOptions) *PublishHeader

func (*PublishHeader) WriteTo

func (c *PublishHeader) WriteTo(w io.Writer) (int64, error)

type PublishShowOptions

type PublishShowOptions struct {
	ShowIndividuals bool
	ShowPlaces      bool
	ShowFamilies    bool
	ShowSurnames    bool
	ShowSources     bool
	ShowStatistics  bool
	Checksum        bool
}

type Row

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

Row is a page row for Bootstrap.

func NewRow

func NewRow(columns ...*Column) *Row

func (*Row) WriteTo

func (c *Row) WriteTo(w io.Writer) (int64, error)

type SexBadge

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

SexBadge shows a coloured "Male", "Female" or "Unknown" badge.

func NewSexBadge

func NewSexBadge(sex gedcom.Sex) *SexBadge

func (*SexBadge) WriteTo

func (c *SexBadge) WriteTo(w io.Writer) (int64, error)

type SourceInList

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

func NewSourceInList

func NewSourceInList(document *gedcom.Document, source *gedcom.SourceNode) *SourceInList

func (*SourceInList) WriteTo

func (c *SourceInList) WriteTo(w io.Writer) (int64, error)
type SourceLink struct {
	// contains filtered or unexported fields
}
func NewSourceLink(source *gedcom.SourceNode) *SourceLink

func (*SourceLink) WriteTo

func (c *SourceLink) WriteTo(w io.Writer) (int64, error)

type SourceListPage

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

func NewSourceListPage

func NewSourceListPage(document *gedcom.Document, googleAnalyticsID string, options PublishShowOptions) *SourceListPage

func (*SourceListPage) WriteTo

func (c *SourceListPage) WriteTo(w io.Writer) (int64, error)

type SourcePage

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

func NewSourcePage

func NewSourcePage(document *gedcom.Document, source *gedcom.SourceNode, googleAnalyticsID string, options PublishShowOptions) *SourcePage

func (*SourcePage) WriteTo

func (c *SourcePage) WriteTo(w io.Writer) (int64, error)

type SourceProperty

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

func NewSourceProperty

func NewSourceProperty(document *gedcom.Document, node gedcom.Node) *SourceProperty

func (*SourceProperty) WriteTo

func (c *SourceProperty) WriteTo(w io.Writer) (int64, error)

type SourceStatistics

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

func NewSourceStatistics

func NewSourceStatistics(document *gedcom.Document) *SourceStatistics

func (*SourceStatistics) WriteTo

func (c *SourceStatistics) WriteTo(w io.Writer) (int64, error)

type Space

type Space struct{}

Space is an empty row used as a white space separator between other page rows.

func NewSpace

func NewSpace() *Space

func (*Space) WriteTo

func (c *Space) WriteTo(w io.Writer) (int64, error)

type Span

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

func NewSpan

func NewSpan(class string, value Component) *Span

func (*Span) WriteTo

func (c *Span) WriteTo(w io.Writer) (int64, error)

type StatisticsPage

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

func NewStatisticsPage

func NewStatisticsPage(document *gedcom.Document, googleAnalyticsID string, options PublishShowOptions) *StatisticsPage

func (*StatisticsPage) WriteTo

func (c *StatisticsPage) WriteTo(w io.Writer) (int64, error)

type StyledTableCell

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

func NewStyledTableCell

func NewStyledTableCell(style, class string, content Component) *StyledTableCell

func (*StyledTableCell) WriteTo

func (c *StyledTableCell) WriteTo(w io.Writer) (int64, error)

type SurnameInList

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

func NewSurnameInList

func NewSurnameInList(document *gedcom.Document, surname string) *SurnameInList

func (*SurnameInList) WriteTo

func (c *SurnameInList) WriteTo(w io.Writer) (int64, error)

type SurnameIndex

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

func NewSurnameIndex

func NewSurnameIndex(document *gedcom.Document, selectedLetter rune) *SurnameIndex

func (*SurnameIndex) WriteTo

func (c *SurnameIndex) WriteTo(w io.Writer) (int64, error)
type SurnameLink struct {
	// contains filtered or unexported fields
}
func NewSurnameLink(surname string) *SurnameLink

func (*SurnameLink) WriteTo

func (c *SurnameLink) WriteTo(w io.Writer) (int64, error)

type SurnameListPage

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

func NewSurnameListPage

func NewSurnameListPage(document *gedcom.Document, googleAnalyticsID string, options PublishShowOptions) *SurnameListPage

func (*SurnameListPage) WriteTo

func (c *SurnameListPage) WriteTo(w io.Writer) (int64, error)

type Table

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

Table is a HTML table.

func NewTable

func NewTable(tableClass string, content ...Component) *Table

func (*Table) WriteTo

func (c *Table) WriteTo(w io.Writer) (int64, error)

type TableCell

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

func NewTableCell

func NewTableCell(content Component) *TableCell

func (*TableCell) Class

func (c *TableCell) Class(class string) *TableCell

func (*TableCell) Header

func (c *TableCell) Header() *TableCell

func (*TableCell) NoWrap

func (c *TableCell) NoWrap() *TableCell

func (*TableCell) Style

func (c *TableCell) Style(style string) *TableCell

func (*TableCell) WriteTo

func (c *TableCell) WriteTo(w io.Writer) (int64, error)

type TableHead

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

TableHead is the <thead> section of a table that contains the table heading cells.

func NewTableHead

func NewTableHead(columns ...string) *TableHead

func (*TableHead) WriteTo

func (c *TableHead) WriteTo(w io.Writer) (int64, error)

type TableRow

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

func NewTableRow

func NewTableRow(cells ...Component) *TableRow

func (*TableRow) WriteTo

func (c *TableRow) WriteTo(w io.Writer) (int64, error)

type Tag

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

func NewTag

func NewTag(tag string, attributes map[string]string, body Component) *Tag

func (*Tag) WriteTo

func (c *Tag) WriteTo(w io.Writer) (int64, error)

type Text

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

Text allows text to be rendered on the page.

func NewText

func NewText(s string) *Text

func (*Text) WriteTo

func (c *Text) WriteTo(w io.Writer) (int64, error)

Source Files

Jump to

Keyboard shortcuts

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