builder

package
v0.0.0-...-5bcf81c Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Copyright © 2024 nikkehtine <nikkehtine@int.pl>

Copyright © 2024 nikkehtine <nikkehtine@int.pl>

Copyright © 2024 nikkehtine <nikkehtine@int.pl>

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder struct {
	Input          string
	Output         string
	TemplatePath   string
	StylesheetPath string
	Config         options.Config
	Template       *template.Template
	Directories    []os.DirEntry
	Documents      []os.DirEntry
	Files          []os.DirEntry
}

func (*Builder) Build

func (b *Builder) Build() error

Build the site, copying all files and building documents

func (*Builder) GetLayout

func (b *Builder) GetLayout() error

func (*Builder) Init

func (b *Builder) Init(conf options.Config) error

Initialize builder object

func (*Builder) Parse

func (b *Builder) Parse(input []byte) ([]byte, error)

type PageRenderer

type PageRenderer struct {
	Title string
	Body  string
}

func (*PageRenderer) Output

func (r *PageRenderer) Output(tmpl *template.Template) ([]byte, error)

Render outputs the rendered Markdown into a HTML template

Jump to

Keyboard shortcuts

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