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

Create filter chain #3

Open
core23 opened this issue Feb 3, 2018 · 0 comments
Open

Create filter chain #3

core23 opened this issue Feb 3, 2018 · 0 comments

Comments

@core23
Copy link
Member

core23 commented Feb 3, 2018

Create some kind of filter chain, so you have to add one filter and execute some filters at once.

Exectute the default filter chain

{{ text|filterChain }}

Execute a custom filter chain:

{{ text|filterChain('test') }}

If you use symfony, you could use a config to define the executed filters:

core23_twig: 
    chain:
        default:
            - lower
            - capitalize
            - reverse
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant