+{{- import "commands" "./commands" -}}
+{{- import "contents" "./contents" -}}
+{{- $cmds := call "commands.renderCommandDocs" -}}
+{{- $cmdContents := call "contents.indentTabs" (call "contents.renderContentSection" $cmds 3) 1 -}}
Goplater is a Go commandline program that helps you template your files
- Getting Started
- Usage
- Standard Library +{{ $cmdContents }}
- Contributing
- Support
- License
- Legal
Need help? Come join our Matrix Server!
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.mdThis will create a new file called README.md in your current working directory.
Goplater uses Go's built-in templating library therefore the syntax should be consistent with other projects.
Example:
File Content: +{{ read "./myfile.txt" }}
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 }}
Found a bug or just want to change or add something? Feel free to open up an issue or a PR!
Like this Project? Or just want to help? Why not ⭐️ this Repo? :)
This Project is licensed under the MIT License.
Logo designed by @CodeShellDev — All Rights Reserved. Go gopher mascot originally created by Renée French, used under the CC BY 4.0 license.
