-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: Add docs for the default template values (#152)
Signed-off-by: AlexNg <[email protected]>
- Loading branch information
1 parent
a00d459
commit 38e86a4
Showing
3 changed files
with
23 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Templates | ||
|
||
!!! TIP | ||
|
||
Waku uses Go's [`text/template`](https://pkg.go.dev/text/template) | ||
library for templating, with 3 brackets `{{{ }}}` instead of 2. | ||
|
||
See the [documentation](https://pkg.go.dev/text/template#hdr-Text_and_spaces) | ||
for how you can leverage Go's strong templating engine. | ||
|
||
## Fields | ||
|
||
You can use them in your styles by having `{{{ .Key }}}` | ||
in your files. | ||
|
||
| Key | Description | | ||
| --- | ------------------------------------------------ | | ||
| `.Name` | the project name | | ||
| `.License` | the project license text (i.e. MIT License) | | ||
| `.Spdx` | the project license SPDX identifier (i.e. MIT) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters