tmplr

package module
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2023 License: MIT Imports: 7 Imported by: 0

README

tmplr

tmplr is a command line tool to expand a Jinja template with variables in a YAML file.

tmplr is written in Go and uses pongo2 template engine library.

Install from source

go install -trimpath -tags netgo github.com/hnakamur/tmplr/...@latest

Example

See https://github.com/hnakamur/tmplr-example

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(cfg *Config) (err error)

Types

type Config

type Config struct {
	AutoEscape       bool
	DestFilename     string
	TemplateFilename string

	VarFilename      string
	YAMLRefDirs      []string
	YAMLRefRecursive bool
}

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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