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
Is it possible for Sourcery (or maybe this is Stencil behavior) to ignore the whitespace between two template expressions?
For example, if I have the following template:
if let {{ variable.name }} = self.{{ variable.name }} { {% if variable.annotations.key %} {% if variable.annotations.serializable %} toReturn["{{ variable.annotations.key }}"] = self.{{ variable.name }}.serialized() {% else %} toReturn["{{ variable.annotations.key }}"] = self.{{ variable.name }} {% endif %} {% else %} {% if variable.annotations.serializable %} toReturn["{{ variable.name }}"] = self.{{ variable.name }}.serialized() {% else %} toReturn["{{ variable.name }}"] = self.{{ variable.name }} {% endif %} {% endif %} }
I get output similar to the following:
if let name = self.name { toReturn["name"] = self.name }
Ideally, this is what we'd get instead:
The text was updated successfully, but these errors were encountered:
HI @chrisellsworth . This is related to this discussion stencilproject/Stencil#22
Sorry, something went wrong.
Thanks @ilyapuchka! I see it's coming soon with stencilproject/Stencil#85 so I'll keep an eye on that PR and close this issue. 🎉
No branches or pull requests
Is it possible for Sourcery (or maybe this is Stencil behavior) to ignore the whitespace between two template expressions?
For example, if I have the following template:
I get output similar to the following:
Ideally, this is what we'd get instead:
The text was updated successfully, but these errors were encountered: