-
-
Notifications
You must be signed in to change notification settings - Fork 143
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
stripping lines that are "standalone" helpers #258
Comments
Good catch. This is what we should support. |
Any plan on this? It is very annoying, especially when generating code. |
This is blocked by an issue with pest parser. I'm waiting for pest 3.0 to see if it will be resolved. |
Any issue reference? or could you create the issue on that repository? Thanks |
IIRC this was the issue: |
+1 for running into this issue |
I'm adding |
Currently, in my usage of handlebars, I use the rule of thumb of appending
Will render as either
Or
If I do want an empty line after the if-else block, I put it in both branches, and this of course works with no |
Yeah I was able to work around this too by actually prepending https://github.com/paritytech/substrate/pull/7447/files None the less, I still believe (although not 100% sure now) that the handlebars rendering by default would not need such stuff. |
In the handlebars.js docs the following is described (https://handlebarsjs.com/expressions.html):
They give the example:
That will render as
Thus rendering the line
{{#if test}}
as nothing. Currenly on handlebars.rs:renders as
(notice the newline between '---' and 'body here'.) Is it possible to ignore those lines?
The text was updated successfully, but these errors were encountered: