-
Notifications
You must be signed in to change notification settings - Fork 397
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
Is it possible to make mustache statements a little cleaner? #1193
Comments
You can do that if you skip the section names: <div style="text-align:center;">
{{#(feature_count > 0 && is_processing == false) }}
<span><b>{{feature_count}}</b> features found</span>
{{/}}
{{#is_processing}}
<img src="Content/imgs/red-ajax-loader.gif" style="margin-right:10px;" />
{{/}}
{{#(status_msg && feature_count > 0)}}
<br/>
{{/}}
{{#status_msg}}
<span style="{{ is_processing ? "" : "color:#bf0000" }};">{{status_msg}}</span>
{{/}}
</div> |
Thats how I originally had it. But I like having the extra statements around it "if, each, etc". |
Looking back into the |
Exactly. And I don't think we should change it. |
Its not a big deal. I just like to remove as much as possible when coding. |
@donnyv let's keep it as-is |
Is it possible not to have to close every mustache statement with its opening statement?
For example instead of this
....have this
Its a small change but it makes it easier to read.
The text was updated successfully, but these errors were encountered: