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

Migrate some filters to use parameters #6

Closed
AliSoftware opened this issue Jan 5, 2017 · 0 comments
Closed

Migrate some filters to use parameters #6

AliSoftware opened this issue Jan 5, 2017 · 0 comments

Comments

@AliSoftware
Copy link
Contributor

Some Filters were created at a time when Stencil didn't support filter parameters yet.

As a result, we have some filters that have been duplicated to allow some variations, but now that Stencil filters support parameters, these duplications can be removed and changed to a filter parameter instead.

One typical example is filters StringFilters.snakeToCamelCase + StringFilters.snakeToCamelCaseNoPrefix that can be unified to a single StringFilters.snakeToCamelCase filter with a parameter (prefix: Bool)

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

No branches or pull requests

2 participants