view_models

package
v0.1.74 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const MainPage = "Main_Page"

Variables

This section is empty.

Functions

func WikiNavigationHTML

func WikiNavigationHTML(slug, pageUrl string, rdx kevlar.ReadableRedux) (string, error)

Types

type WikisSlugPageViewModel

type WikisSlugPageViewModel struct {
	Slug          string
	WikiName      string
	PageTitle     string
	PublishDate   string
	UpdatedAt     string
	Entities      []template.HTML
	PrevPageTitle string
	PrevPageUrl   string
	NextPageTitle string
	NextPageUrl   string
}

func NewWikiPageViewModel

func NewWikiPageViewModel(slug, page string, rdx kevlar.ReadableRedux) *WikisSlugPageViewModel

type WikisSlugViewModel

type WikisSlugViewModel struct {
	Title   string
	Slug    string
	Items   []template.HTML
	Manuals []string
}

func NewWikiSlugViewModel

func NewWikiSlugViewModel(slug string, rdx kevlar.ReadableRedux) (*WikisSlugViewModel, error)

func NewWikisViewModel added in v0.1.40

func NewWikisViewModel(order []string, titles map[string]string) (*WikisSlugViewModel, error)

Jump to

Keyboard shortcuts

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