Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new increment filter to Numbers #176

Open
FelipeDocil opened this issue Dec 21, 2023 · 0 comments
Open

Add new increment filter to Numbers #176

FelipeDocil opened this issue Dec 21, 2023 · 0 comments

Comments

@FelipeDocil
Copy link

I'm using Sourcery, I can't create my own filters and I've tried many times to increment an Integer, I'd like to ask if it's possible to add this as a new filter for numbers here at StencilSwiftKit (or please help me how I'd achieve this without a new filter)

For context what I'd like to do in Stencil:
{{ forloop.counter + 5 }}

Unfortunately this is not yet supported (see for reference: stencilproject/Stencil#117)

I'd like to propose a new filter that would look similar to this:
{{ forloop.counter|increment:5 }}

Any thoughts? Again if I can do that with the existing filter please let me know

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

No branches or pull requests

1 participant