Skip to content
This repository was archived by the owner on Jun 27, 2025. It is now read-only.

Include Sprig Template functions#347

Merged
jrasell merged 5 commits intohashicorp:masterfrom
angrycub:f-sprig-3
Aug 21, 2020
Merged

Include Sprig Template functions#347
jrasell merged 5 commits intohashicorp:masterfrom
angrycub:f-sprig-3

Conversation

@angrycub
Copy link
Contributor

Including Sprig template functions as "sprig«FunctionName»" Upcases the first letter of the sprig function name to be consistent with typical go formatting. Includes some helper functions to provide upper/lower on the first rune of a string and any single rune in a string

This involved a bit of a dance because functions can
have Unicode names. The sprig functions do not, but
this allows for it to happen if it does. It also
gives us some additional template functions.
@jrasell jrasell self-requested a review August 20, 2020 08:43
Copy link
Member

@jrasell jrasell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

amazing thanks @angrycub

@jrasell jrasell merged commit 322d13c into hashicorp:master Aug 21, 2020
@angrycub angrycub deleted the f-sprig-3 branch August 21, 2020 19:30
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants