Skip to content

Conversation

@kottle
Copy link

@kottle kottle commented Jun 18, 2020

Added to template extra functions to manipulate int:
My request is to add functions:
add: a+b
div: a/b
mult: a*b
pctVal: (size-val)*100/size

Copy link
Contributor

@coryb coryb left a comment

Choose a reason for hiding this comment

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

Hey, add, div and mul should already be there via the inclusion of the sprig library:
http://masterminds.github.io/sprig/math.html

We can probably also remove sub in favor of the one in sprig (I think it was added before we used sprig).

Could you try your templates without those added functions to make sure the sprig usage works for you? I am fine with adding pctVal I dont think it was available via sprig.

@coryb coryb removed the request for review from vanniktech June 18, 2020 16:35
@nyarly
Copy link
Collaborator

nyarly commented May 7, 2025

@kottle Any interest in following up here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants