You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Goplater is a commandline programm that templates files by using local and also remote files.
3
+
Goplater is a Go commandline programm that helps you template your files.
4
4
5
5
## Getting Started
6
+
7
+
Download the `latest` binaries from the Release Page.
8
+
Make it executable with `chmod +x goplater` and run it for the first time.
9
+
10
+
Use the `goplater template` command to template files:
11
+
12
+
```bash
13
+
./goplater template TEMPLATE.md -o README.md
14
+
```
15
+
16
+
This will create a new file called `README.md` in your current working directory.
17
+
18
+
## Usage
19
+
20
+
Take a look at this `TEMPLATE.md` file:
21
+
22
+
```markdown
23
+
{{{ #://examples/TEMPLATE.md }}}
24
+
```
25
+
26
+
Notice the `{{{ #://... }}}` and `{{{ @://... }}}`, these are used to include local and remot files in your Template respectively.
27
+
This Template will then include `examples/data.json` and `docker-compose.yaml` (from [Secured Signal API](https://github.com/CodeShellDev/secured-signal-api/blob/main/docker-compose.yaml)) in its File Content.
28
+
29
+
Which results in:
30
+
31
+
```markdown
32
+
{{{ !#://examples/TEMPLATE.md }}}
33
+
```
34
+
35
+
## Contributing
36
+
37
+
Found a bug or just want to change or add something?
0 commit comments