forked from openstack-k8s-operators/lib-common
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds template functions which: - to exec an inline template - indent a template - remove n continuous empty lines from a template - specific to openstack ini files, removes all new lines in sections, but have them in section separation. An example would be a template like: ``` {{define "my-template"}}new template content with empty lines to remove {{end}} Some other template content and add the rendered from my-template {{$var := execTempl "my-template" . | removeNewLines 1}} {{$var}} ``` Co-authored-by: auniyal61 Signed-off-by: Martin Schuppert <[email protected]>
- Loading branch information
Showing
4 changed files
with
374 additions
and
7 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
Oops, something went wrong.