lt

package
v0.0.0-...-e6ef1c1 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2019 License: EPL-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RIGHT    = "rightCell"
	CENTER   = "centerCell"
	LEFT     = "leftCell"
	CELL1Of3 = "cellOneOfThree"
	CELL2Of3 = "cellTwoOfThree"
	CELL3Of3 = "cellThreeOfThree"
)

Variables

View Source
var Db *sqlx.DB
View Source
var DocProps docProps
View Source
var Domains []string
View Source
var Retrieved map[string]models.Ltext

stores the Ltext records that have already been retrieved from the database so we do not do another call to the db.

View Source
var TemplateDir string = "/Users/mac002/doxago/templates"

Functions

func GetRecord

func GetRecord(id string) (models.Ltext, error)

get the record with the specified id. If it has been already retrieved from the database we will get it from the retrieved map. Otherwise, we will read it from the database.

func Serve

func Serve(port, home string)

Types

type Cell

type Cell struct {
	Class       string
	Parentheses bool
	Col         string
	Spans       []Span
}

type Command

type Command string

func (Command) Actor

func (p Command) Actor(a ...string) string

Liturgical template command

func (Command) ActorDialog

func (p Command) ActorDialog(a ...string) string

Liturgical template command

func (Command) Dialog

func (p Command) Dialog(a ...string) string

Liturgical template command

func (Command) DialogP

func (p Command) DialogP(a ...string) string

Liturgical template command

func (Command) Generic

func (p Command) Generic(class string, a []string, f []css.SpanCss) string

This is the generic version of template commands used to format liturgical texts.

func (Command) Insert

func (p Command) Insert(a ...string) string

Liturgical template command

func (Command) SetDate

func (p Command) SetDate(year, month, day int)

Sets the date for the generation of a document. If the values are all equal to zero, the date is set to today's date. If the year is 0 and month and day are > 0, the current year is used.

func (Command) SetMCDay

func (p Command) SetMCDay(d int)

Liturgical template command to temporarily override the movable cycle day.

type Data

type Data struct {
	Title string
	Rows  []Row
}
var Table Data

type Row

type Row struct {
	Cells []Cell
}

type Span

type Span struct {
	Class string
	Id    string
	Value string
	Colon bool
	Error bool
}

Jump to

Keyboard shortcuts

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