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

Avoid always repeating {% stripspace %} everywhere #59

Open
frederikhors opened this issue Aug 12, 2019 · 1 comment
Open

Avoid always repeating {% stripspace %} everywhere #59

frederikhors opened this issue Aug 12, 2019 · 1 comment

Comments

@frederikhors
Copy link

I'm using

{% stripspace %}
...
{% endstripspace %}

everywhere.

Is there a way to avoid always repeating this code and taking it for granted?

Maybe during compilation with qtc? Maybe as a parameter?

@valyala
Copy link
Owner

valyala commented Aug 12, 2019

Currently there is no way to avoid {% stripspace %}. But it can be used only once per qtpl file:

{% stripspace %}

{ % func foo() %}
...
{% endfunc %}

...

{% func bar() %}
....
{ % endfunc %}

{% endstripspace %}

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