Documentation ¶
Index ¶
- Variables
- func Markdown(source string) string
- func MinInt(a, b int) int
- func ProcessConfig(page *gostatic.Page, args []string) error
- func ProcessDirectorify(page *gostatic.Page, args []string) error
- func ProcessExt(page *gostatic.Page, args []string) error
- func ProcessExternal(page *gostatic.Page, args []string) error
- func ProcessIgnore(page *gostatic.Page, args []string) error
- func ProcessInnerTemplate(page *gostatic.Page, args []string) error
- func ProcessMarkdown(page *gostatic.Page, args []string) error
- func ProcessPaginate(page *gostatic.Page, args []string) error
- func ProcessPaginateCollectPages(page *gostatic.Page, args []string) error
- func ProcessRelativize(page *gostatic.Page, args []string) error
- func ProcessRename(page *gostatic.Page, args []string) error
- func ProcessTags(page *gostatic.Page, args []string) error
- func ProcessTemplate(page *gostatic.Page, args []string) error
- type ConfigProcessor
- type DirectorifyProcessor
- type ExtProcessor
- type ExternalProcessor
- type IgnoreProcessor
- type MarkdownProcessor
- type PaginateProcessor
- type Paginator
- type RelativizeProcessor
- type RenameProcessor
- type TagsProcessor
- type TemplateProcessor
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultProcessors = gostatic.ProcessorMap{ "template": NewTemplateProcessor(), "inner-template": NewInnerTemplateProcessor(), "config": NewConfigProcessor(), "markdown": NewMarkdownProcessor(), "ext": NewExtProcessor(), "directorify": NewDirectorifyProcessor(), "tags": NewTagsProcessor(), "paginate": NewPaginateProcessor(), "paginate-collect-pages": NewPaginateCollectPagesProcessor(), "relativize": NewRelativizeProcessor(), "rename": NewRenameProcessor(), "external": NewExternalProcessor(), "ignore": NewIgnoreProcessor(), }
View Source
var NonProtoRe = regexp.MustCompile(`(href|src)=["']//`)
View Source
var Paginated = map[string]gostatic.PageSlice{}
View Source
var Paginators = map[string]*Paginator{}
View Source
var RelRe = regexp.MustCompile(`(href|src)=["']/([^"']*)["']`)
Functions ¶
Types ¶
type ConfigProcessor ¶
type ConfigProcessor struct { }
func NewConfigProcessor ¶
func NewConfigProcessor() *ConfigProcessor
func (*ConfigProcessor) Description ¶
func (p *ConfigProcessor) Description() string
func (*ConfigProcessor) Mode ¶
func (p *ConfigProcessor) Mode() int
type DirectorifyProcessor ¶
type DirectorifyProcessor struct { }
func NewDirectorifyProcessor ¶
func NewDirectorifyProcessor() *DirectorifyProcessor
func (*DirectorifyProcessor) Description ¶
func (p *DirectorifyProcessor) Description() string
func (*DirectorifyProcessor) Mode ¶
func (p *DirectorifyProcessor) Mode() int
type ExtProcessor ¶
type ExtProcessor struct { }
func NewExtProcessor ¶
func NewExtProcessor() *ExtProcessor
func (*ExtProcessor) Description ¶
func (p *ExtProcessor) Description() string
func (*ExtProcessor) Mode ¶
func (p *ExtProcessor) Mode() int
type ExternalProcessor ¶
type ExternalProcessor struct { }
func NewExternalProcessor ¶
func NewExternalProcessor() *ExternalProcessor
func (*ExternalProcessor) Description ¶
func (p *ExternalProcessor) Description() string
func (*ExternalProcessor) Mode ¶
func (p *ExternalProcessor) Mode() int
type IgnoreProcessor ¶
type IgnoreProcessor struct { }
func NewIgnoreProcessor ¶
func NewIgnoreProcessor() *IgnoreProcessor
func (*IgnoreProcessor) Description ¶
func (p *IgnoreProcessor) Description() string
func (*IgnoreProcessor) Mode ¶
func (p *IgnoreProcessor) Mode() int
type MarkdownProcessor ¶
type MarkdownProcessor struct { }
func NewMarkdownProcessor ¶
func NewMarkdownProcessor() *MarkdownProcessor
func (*MarkdownProcessor) Description ¶
func (p *MarkdownProcessor) Description() string
func (*MarkdownProcessor) Mode ¶
func (p *MarkdownProcessor) Mode() int
type PaginateProcessor ¶
type PaginateProcessor struct {
// contains filtered or unexported fields
}
func NewPaginateCollectPagesProcessor ¶
func NewPaginateCollectPagesProcessor() *PaginateProcessor
func NewPaginateProcessor ¶
func NewPaginateProcessor() *PaginateProcessor
func (*PaginateProcessor) Description ¶
func (p *PaginateProcessor) Description() string
func (*PaginateProcessor) Mode ¶
func (p *PaginateProcessor) Mode() int
type Paginator ¶
type Paginator struct { Number int PathPattern string Page *gostatic.Page Pages gostatic.PageSlice }
func CurrentPaginator ¶
func NewPaginator ¶
func NewPaginator() *Paginator
type RelativizeProcessor ¶
type RelativizeProcessor struct { }
func NewRelativizeProcessor ¶
func NewRelativizeProcessor() *RelativizeProcessor
func (*RelativizeProcessor) Description ¶
func (p *RelativizeProcessor) Description() string
func (*RelativizeProcessor) Mode ¶
func (p *RelativizeProcessor) Mode() int
type RenameProcessor ¶
type RenameProcessor struct { }
func NewRenameProcessor ¶
func NewRenameProcessor() *RenameProcessor
func (*RenameProcessor) Description ¶
func (p *RenameProcessor) Description() string
func (*RenameProcessor) Mode ¶
func (p *RenameProcessor) Mode() int
type TagsProcessor ¶
type TagsProcessor struct { }
func NewTagsProcessor ¶
func NewTagsProcessor() *TagsProcessor
func (*TagsProcessor) Description ¶
func (p *TagsProcessor) Description() string
func (*TagsProcessor) Mode ¶
func (p *TagsProcessor) Mode() int
type TemplateProcessor ¶
type TemplateProcessor struct {
// contains filtered or unexported fields
}
func NewInnerTemplateProcessor ¶
func NewInnerTemplateProcessor() *TemplateProcessor
func NewTemplateProcessor ¶
func NewTemplateProcessor() *TemplateProcessor
func (*TemplateProcessor) Description ¶
func (p *TemplateProcessor) Description() string
func (*TemplateProcessor) Mode ¶
func (p *TemplateProcessor) Mode() int
Click to show internal directories.
Click to hide internal directories.