templates

package
v1.4.5 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package templates provides handling templates user can specify.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyTemplate

func ApplyTemplate(tmplPath, name string) ([]byte, error)

ApplyTemplate reads a markdown template from the given path, injects the note's name and current date, and returns the rendered bytes.

Types

type TemplateData

type TemplateData struct {
	Title string
	Date  string
}

TemplateData holds the variables that will be injected into the markdown templates.

Jump to

Keyboard shortcuts

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