templating

package
v0.0.0-...-77c78fe Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2020 License: GPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompileTemplates

func CompileTemplates(pattern string, funcMap template.FuncMap) (*template.Template, error)

func FormatActors

func FormatActors(list []models.Actor) []models.Actor

func FormatGenres

func FormatGenres(genreList string) []string

func FormatPlot

func FormatPlot(plot string) string

func FormatRuntime

func FormatRuntime(runtime int) string

func FormatRuntimeDotted

func FormatRuntimeDotted(runtime int) string

func FormatTrailers

func FormatTrailers(trailerList string) []string

func GetImageWithSize

func GetImageWithSize(img models.Image, preferred int) string
func GetPermalink(m models.Media) string

func GetReleaseYear

func GetReleaseYear(m models.Media) string

func GetTrailer

func GetTrailer(m models.Media) string

func HomeBrowse

func HomeBrowse(m []models.Media) []models.Media

func HomeFirst

func HomeFirst(m []models.Media) models.Media

func HomeRecently

func HomeRecently(m []models.Media) []models.Media

Types

This section is empty.

Jump to

Keyboard shortcuts

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