-
-
Notifications
You must be signed in to change notification settings - Fork 109
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
Comments
dg
added a commit
that referenced
this issue
Nov 12, 2020
dg
added a commit
that referenced
this issue
Nov 12, 2020
dg
added a commit
that referenced
this issue
Nov 12, 2020
dg
added a commit
that referenced
this issue
Nov 12, 2020
dg
added a commit
that referenced
this issue
Nov 12, 2020
dg
added a commit
that referenced
this issue
Nov 14, 2020
dg
added a commit
that referenced
this issue
Nov 14, 2020
dg
added a commit
that referenced
this issue
Nov 14, 2020
dg
added a commit
that referenced
this issue
Nov 14, 2020
dg
added a commit
that referenced
this issue
Nov 14, 2020
dg
added a commit
that referenced
this issue
Nov 15, 2020
dg
added a commit
that referenced
this issue
Nov 15, 2020
dg
added a commit
that referenced
this issue
Nov 15, 2020
dg
added a commit
that referenced
this issue
Nov 15, 2020
dg
added a commit
that referenced
this issue
Nov 15, 2020
dg
added a commit
that referenced
this issue
Nov 15, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
The text was updated successfully, but these errors were encountered: