ordo

package module
v0.0.0-...-6b70b48 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

README

Ordo

The purpose of Ordo is to add lectionaries to golang templates to enable easy (or at least easier) writing of orders of service, particularly for prayer offices like Matins.

Design

Ordo is designed so that the definition of the order of service, including referencing the lectionary, occurs entirely within the template file.

The appengine directory includes an example template, which you can see in action at https://bible-pit-prayer.appspot.com.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddToGroup

func AddToGroup(config Config, group *gin.RouterGroup)

func GetServeMux

func GetServeMux(config Config) *http.ServeMux

func MakeReading

func MakeReading(ctx context.Context, token string, day time.Time) func(lectionary.Lectionary) template.HTML

Types

type Config

type Config struct {
	PageTemplates   map[string]string
	ServiceTemplate string
	// These paths, if specified, will result in a redirect to today's service if visited.
	// If not specified, the default is "/today".
	RedirectPaths []string
	ESVToken      string
}

func (Config) SetFuncMap

func (cfg Config) SetFuncMap(ctx context.Context, t *template.Template, day time.Time) *template.Template

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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