template

package
v0.0.0-...-974fe46 Latest Latest
Warning

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

Go to latest
Published: May 11, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package template handles HTML template rendering.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteDefaultLayout

func WriteDefaultLayout(path string) error

Types

type Data

type Data struct {
	Domain   string
	Path     string
	VCS      string
	Repo     string
	MetaTags template.HTML
}

type Renderer

type Renderer struct {
	// contains filtered or unexported fields
}

func NewRenderer

func NewRenderer(layoutPath string) (*Renderer, error)

func (*Renderer) RenderAndWrite

func (r *Renderer) RenderAndWrite(data Data, outputPath string) error

Jump to

Keyboard shortcuts

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