We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I wanted to build a component where the children are optional and that depending on the presence of children the output is different.
I tried to detect it via children|length but since it also contains whitespace (see example below) that did not work.
children|length
{% #menu title="Test" %} {% /menu %}
In this example children|length returns a number > 0 since there is whitespace.
{% #menu title="Test" %}{% /menu %}
Here children|length returns 0.
Is this possible at all to detect this?
The text was updated successfully, but these errors were encountered:
Have you tried children.strip|length?
children.strip|length
Sorry, something went wrong.
No branches or pull requests
I wanted to build a component where the children are optional and that depending on the presence of children the output is different.
I tried to detect it via
children|length
but since it also contains whitespace (see example below) that did not work.In this example
children|length
returns a number > 0 since there is whitespace.Here
children|length
returns 0.Is this possible at all to detect this?
The text was updated successfully, but these errors were encountered: