Skip to content
CodeShellDevPublic

About

CLI program for templating files with the help of Go templates

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Latest commit

 

History

238 Commits

Folders and files

Repository files navigation

+{{- import "commands" "./commands" -}}

+{{- import "contents" "./contents" -}}

+{{- $cmds := call "commands.renderCommandDocs" -}}

+{{- $cmdContents := call "contents.indentTabs" (call "contents.renderContentSection" $cmds 3) 1 -}}

Goplater Logo

Goplater

Goplater is a Go commandline program that helps you template your files

Contents

Need help? Come join our Matrix Server!

Getting Started

Download the latest binary from the Release page. Make it executable with chmod +x goplater and run it for the first time.

Use the goplater template command to template files:

./goplater template TEMPLATE.md -o README.md

This will create a new file called README.md in your current working directory.

Usage

Format

Goplater uses Go's built-in templating library therefore the syntax should be consistent with other projects.

Example:

File Content: +​{​​{ read "./myfile.txt" }​}​

Standard Library

Goplater includes a large and growing selection of built-in functions for use in your templates. Apart from basic operations goplater includes modules such as json, yaml, html, markdown, http and regex.

Furthermore it is easily extendable both with custom modules and your own goplater function files, that can easily be imported and shared!

+{{ $cmds }}

Contributing

Found a bug or just want to change or add something? Feel free to open up an issue or a PR!

Support

Like this Project? Or just want to help? Why not ⭐️ this Repo? :)

License

This Project is licensed under the MIT License.

Legal

Logo designed by @CodeShellDev — All Rights Reserved. Go gopher mascot originally created by Renée French, used under the CC BY 4.0 license.

About

CLI program for templating files with the help of Go templates

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages