Skip to content

jw4/tpl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

tpl

A simple CLI tool that applies JSON data to Go templates.

Installation

go install github.com/jw4/tpl@latest

Usage

tpl -d data.json template.tpl > output.txt
  • -d specifies the JSON data file
  • Template file is provided as a positional argument
  • Output is written to stdout

The JSON data is parsed into a map[string]any and made available to the Go text/template for rendering.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages