extract

package
v0.0.0-...-df0e004 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2014 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Block

type Block struct {
	Id    content.BlockId
	Units []*Unit
}

type ExtractServer

type ExtractServer struct{}

func (*ExtractServer) Flavor

func (s *ExtractServer) Flavor(context *frontend.Context, extract *content.Extract, a, b *frontend.FlavorTriple) ([]byte, error)

type Flavor

type Flavor struct {
	IdA, IdB             content.FlavorId
	Title                StringPair
	LanguageA, LanguageB language.Code
	Blocks               []*Block
}

type StringPair

type StringPair struct {
	ContentA, ContentB string
	MissingA, MissingB bool
}

type TmplArgs

type TmplArgs struct {
	*server.TmplArgs

	ExtractId content.ExtractId
	Slug      string
	// contains filtered or unexported fields
}

func NewTmplArgs

func NewTmplArgs(tmplArgs *server.TmplArgs, e *content.Extract, a, b *content.Flavor) *TmplArgs

func NewTmplArgsExtract

func NewTmplArgsExtract(tmplArgs *server.TmplArgs, e *content.Extract) *TmplArgs

func (*TmplArgs) LanguageA

func (a *TmplArgs) LanguageA() string

func (*TmplArgs) LanguageB

func (a *TmplArgs) LanguageB() string

func (*TmplArgs) LanguageOptions

func (args *TmplArgs) LanguageOptions(e *content.Extract) ([]*languageOption, *selection)

func (*TmplArgs) LinkEdit

func (a *TmplArgs) LinkEdit(which, what string) string

func (*TmplArgs) LinkNewFlavor

func (a *TmplArgs) LinkNewFlavor() string

func (*TmplArgs) LinkRead

func (a *TmplArgs) LinkRead() string

func (*TmplArgs) Nest

func (a *TmplArgs) Nest(data interface{}) *nestedArgs

type Unit

type Unit struct {
	Id content.UnitId
	StringPair
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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