entity

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Deps

type Deps struct {
	Cfg                 config.Provider
	OutputFormatsConfig hugoSitesVO.Formats
	Language            *lang.Language

	// The site building.
	Site site.Site

	TemplateProvider deps.ResourceProvider

	// The templates to use. This will usually implement the full tpl.TemplateManager.
	TemplateHandler template.Handler

	// The PathSpec to use
	*psEntity.PathSpec

	// The ContentSpec to use
	*csEntity.ContentSpec `json:"-"`
}

func (*Deps) LoadResources

func (d *Deps) LoadResources() error

LoadResources loads translations and templates.

func (*Deps) OutputFormats

func (d *Deps) OutputFormats() hugoSitesVO.Formats

func (*Deps) SetTmpl

func (d *Deps) SetTmpl(tmpl template.Handler)

func (*Deps) Tmpl

func (d *Deps) Tmpl() template.Handler

Jump to

Keyboard shortcuts

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