Versions in this module Expand all Collapse all v0 v0.2.3 Dec 22, 2024 v0.2.2 Dec 22, 2024 v0.2.1 Dec 21, 2024 v0.2.0 Dec 20, 2024 Changes in this version + type FmtOpt struct + NoEntities bool + NoWarnings bool + Pos Position type Map + func (scope Map) GetStrList(key string) ([]string, error) + type ModelInfo struct + Author string + Created *time.Time + Description string + File string + FileNE string + Modified *time.Time + Path string + Title string type Page + Error *Warning + Markdown bool + Warnings []Warning + func (p *Page) Description() string + func (p *Page) External() bool + func (p *Page) Fmt(text string, pos Position) HTML + func (p *Page) FmtOpts(text string, pos Position, o FmtOpt) HTML + func (p *Page) Keywords() []string + func (p *Page) Preview() string + func (p *Page) Text() string + func (scope Page) GetStrList(key string) ([]string, error) type PageInfo + Description string + Error *Warning + External bool + FileNE string + Keywords []string + Preview string + Warnings []Warning + type PageOptCode struct + Lang string + Style string + type PageOptLinkOpts struct + DisplayDefault *string + Ok *bool + Target *string + Tooltip *string type PageOptPage + Code PageOptCode + type ParserError struct + Err error + Pos Position + func (e *ParserError) Error() string + func (e *ParserError) Unwrap() error + type Position struct + Column int + Line int + func (pos *Position) MarshalJSON() ([]byte, error) + func (pos *Position) UnmarshalJSON(data []byte) error + func (pos Position) String() string + type Warning struct + Message string + Pos Position v0.1.0 Feb 20, 2020 Changes in this version + const PageOptExternalTypeMediaWiki + const PageOptExternalTypeNone + const PageOptExternalTypeQuiki + func CategoryName(name string) string + func CategoryNameNE(name string) string + func InjectPageOpt(page *Page, opt *PageOpt) error + func MakeDir(dir, name string) + func ModelName(name string) string + func PageName(name string) string + func PageNameExt(name, ext string) string + func PageNameLink(name string) string + func PageNameNE(name string) string + func ScaleString(name string, retina []int) string + func UniqueFilesInDir(dir string, extensions []string, thisDirOnly bool) ([]string, error) + type AttributedObject interface + Get func(key string) (interface{}, error) + GetBlock func(key string) (block, error) + GetBool func(key string) (bool, error) + GetObj func(key string) (AttributedObject, error) + GetStr func(key string) (string, error) + Set func(key string, value interface{}) error + type HTML string + type List struct + func NewList(mb block) *List + func (b List) String() string + type Map struct + func NewMap(mb block) *Map + func (b Map) String() string + func (m *Map) Keys() []string + func (m *Map) Map() map[string]interface{} + func (m *Map) OrderedKeys() []string + func (scope Map) Get(key string) (interface{}, error) + func (scope Map) GetBlock(key string) (block, error) + func (scope Map) GetBool(key string) (bool, error) + func (scope Map) GetObj(key string) (AttributedObject, error) + func (scope Map) GetStr(key string) (string, error) + func (scope Map) Set(key string, value interface{}) error + type Page struct + FilePath string + Images map[string][][]int + Models map[string]bool + Opt *PageOpt + PageLinks map[string][]int + Source string + VarsOnly bool + Wiki interface{} + func NewPage(filePath string) *Page + func NewPagePath(filePath, name string) *Page + func NewPageSource(source string) *Page + func (p *Page) Author() string + func (p *Page) CSS() string + func (p *Page) CacheExists() bool + func (p *Page) CacheModified() time.Time + func (p *Page) CachePath() string + func (p *Page) Categories() []string + func (p *Page) Created() time.Time + func (p *Page) Draft() bool + func (p *Page) Exists() bool + func (p *Page) FmtTitle() HTML + func (p *Page) Generated() bool + func (p *Page) HTML() HTML + func (p *Page) Info() PageInfo + func (p *Page) IsSymlink() bool + func (p *Page) Modified() time.Time + func (p *Page) Name() string + func (p *Page) NameNE() string + func (p *Page) OSName() string + func (p *Page) OSNameNE() string + func (p *Page) Parse() error + func (p *Page) Path() string + func (p *Page) Prefix() string + func (p *Page) Redirect() string + func (p *Page) RelName() string + func (p *Page) RelNameNE() string + func (p *Page) RelPath() string + func (p *Page) SearchPath() string + func (p *Page) Title() string + func (p *Page) TitleOrName() string + func (scope Page) Get(key string) (interface{}, error) + func (scope Page) GetBlock(key string) (block, error) + func (scope Page) GetBool(key string) (bool, error) + func (scope Page) GetObj(key string) (AttributedObject, error) + func (scope Page) GetStr(key string) (string, error) + func (scope Page) Set(key string, value interface{}) error + type PageInfo struct + Author string + Created *time.Time + Draft bool + File string + FmtTitle HTML + Generated bool + Modified *time.Time + Path string + Redirect string + Title string + type PageOpt struct + Category PageOptCategory + Dir PageOptDir + ErrorPage string + External map[string]PageOptExternal + Host PageOptHost + Image PageOptImage + Link PageOptLink + Logo string + MainPage string + MainRedirect bool + Name string + Navigation []PageOptNavigation + Page PageOptPage + Root PageOptRoot + Search PageOptSearch + Template string + type PageOptCategory struct + PerPage int + type PageOptDir struct + Cache string + Category string + Image string + Markdown string + Model string + Page string + Wiki string + type PageOptExternal struct + Name string + Root string + Type PageOptExternalType + type PageOptExternalType string + type PageOptHost struct + Wiki string + type PageOptImage struct + Calc func(file string, width, height int, page *Page) (w, h int) + Retina []int + SizeMethod string + Sizer func(file string, width, height int, page *Page) (path string) + type PageOptLink struct + ParseCategory PageOptLinkFunction + ParseExternal PageOptLinkFunction + ParseInternal PageOptLinkFunction + type PageOptLinkFunction func(page *Page, ok *bool, target, tooltip, displayDefault *string) + type PageOptNavigation struct + Display string + Link string + type PageOptPage struct + EnableCache bool + EnableTitle bool + type PageOptRoot struct + Category string + File string + Image string + Page string + Wiki string + type PageOptSearch struct + Enable bool