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

Filter 'strip' works on {block} but not on {capture} #215

Closed
MartinStepar opened this issue Feb 19, 2020 · 0 comments
Closed

Filter 'strip' works on {block} but not on {capture} #215

MartinStepar opened this issue Feb 19, 2020 · 0 comments

Comments

@MartinStepar
Copy link

Version: 2.6.1

Where's the issue?

Some filters have strict type hint to "string", eg. strip. When applied to {block}, it's OK, but on {capture} is captured content wrapped into Latte\Runtime\Html, then given to filter - and TypeError is here.

Try this...

{capture $test|strip} Test {/capture}

...instead of TypeError should filter works the same way as in {block}

{block test|strip} Test {/block}

TypeError

nette-latte-filter-bug

@dg dg closed this as completed in 675a78c Nov 11, 2020
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