File tree 1 file changed +64
-0
lines changed
1 file changed +64
-0
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ layout : post
3
+ title : " bash-templater"
4
+ description : " Simplify Configuration File and Script Generation"
5
+ category : bash
6
+ tags : [bash, templates, text]
7
+ ---
8
+
9
+ bash-templater empowers efficient templating within Bash scripts,
10
+ streamlining the creation of configuration files, documentation, and more.
11
+ With its intuitive syntax and powerful features, you can effortlessly craft
12
+ dynamic output.
13
+
14
+ ## TL;DR
15
+
16
+ Installing:
17
+
18
+ bpkg install vicentebolea/bash-templater
19
+
20
+ Using it:
21
+
22
+ templater vars < file.template
23
+
24
+ ## USE ME
25
+ You have this ` file.template ` :
26
+
27
+ ``` markdown
28
+ # My template
29
+ ## Author
30
+ - @NAME@ <@EMAIL@>
31
+ ```
32
+ And this ` rules ` file:
33
+ ``` bash
34
+ NAME=LEOPOLDO WINSTON
35
+ EMAIL=leothewinston\@ leoserver.com
36
+ ```
37
+
38
+ You execute this command:
39
+ ``` bash
40
+ templater rules < file.template
41
+ ```
42
+
43
+ You get this:
44
+ ``` markdown
45
+ # My template
46
+ ## Author
47
+ - LEOPOLDO WINSTON <
[email protected] >
48
+ ```
49
+
50
+ ## The only rule
51
+
52
+ Escape the ` @ ` character like ` \@ ` in the rules file.
53
+
54
+ ## INSTALL ME
55
+ Use the fantastic BASH package manager BPKG and just:
56
+
57
+ bpkg install vicentebolea/bash-templater
58
+
59
+ ## Links
60
+
61
+ * [ Source Code (GitHub)] ( https://github.com/vicentebolea/bpkg.github.io )
62
+ * Authors: [ Vicente Adolfo Bolea Sanchez] ( https://github.com/vicentebolea )
63
+
64
+ {% include JB/setup %}
You can’t perform that action at this time.
0 commit comments