Tianon Gravi
|
1a4c6e83ab
|
Add `sha256sum` template function
This is intentionally named and implemented to match the one in Sprig: https://masterminds.github.io/sprig/crypto.html
|
2024-01-19 16:42:52 -08:00 |
Tianon Gravi
|
57f0420223
|
Add new "getenv" templatelib function
Three usages:
- getenv "FOO"
- getenv "FOO" "default"
- getenv "FOO" "set" "unset"
|
2017-07-12 16:06:44 -07:00 |
Tianon Gravi
|
8177bb8839
|
Add some examples/tests for "pkg/templatelib" (94.9% coverage)
|
2017-04-03 12:20:49 -07:00 |
Tianon Gravi
|
2406f9a744
|
Add some godocs for templatelib (mostly so I don't forget again how to use it, but also for others)
|
2017-02-20 11:07:45 -08:00 |
Tianon Gravi
|
c98d0c2b3d
|
Stop being a dummy reinventing the wheel and use template.IsTrue
|
2016-06-03 09:15:36 -07:00 |
Tianon Gravi
|
3db02d3b23
|
Add "empty string is false" to "ternary"
|
2016-06-02 20:41:21 -07:00 |
Tianon Gravi
|
5e6bbb37cb
|
Make ternary more forgiving of "interesting" boolean-like values
|
2016-06-02 17:30:32 -07:00 |
Tianon Gravi
|
29dc82bbab
|
More reflection tweaking
|
2016-06-02 17:23:48 -07:00 |
Tianon Gravi
|
032bdbe949
|
Use proper reflection instead of simple type switching
|
2016-06-02 17:21:11 -07:00 |
Tianon Gravi
|
5c8be71405
|
Generify some of the "action factory" logic in templatelib, thus allowing "first" and "last" to work on arbitrary types instead of just strings
|
2016-06-02 17:14:33 -07:00 |
Tianon Gravi
|
e4fd05106a
|
Screw it, let functions take only one argument instead of requiring two
|
2016-06-02 17:05:15 -07:00 |
Tianon Gravi
|
e55c34e8a6
|
Add new "ternary" templatelib function
|
2016-06-02 17:01:09 -07:00 |
Tianon Gravi
|
939e8fc63d
|
Fix minor typo
|
2016-06-02 16:49:58 -07:00 |
Tianon Gravi
|
369f346d90
|
Add a new "pkg/templatelib" package with the start of a simple text/template "stdlib"
|
2016-06-02 16:46:29 -07:00 |