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

Support whitespace control #60

Closed
justinbmeyer opened this issue Sep 1, 2016 · 4 comments
Closed

Support whitespace control #60

justinbmeyer opened this issue Sep 1, 2016 · 4 comments
Assignees

Comments

@justinbmeyer
Copy link
Contributor

From: canjs/canjs#2284

If not yet supported, please support whitespace control like Handlebars: http://handlebarsjs.com/expressions.html#whitespace-control

My use case: :empty pseudo selector, which does not match

<div> </div>

<div>
  <!-- test -->
</div>

<div>
</div>

Background:

@justinbmeyer
Copy link
Contributor Author

This would have to use some other syntax. ~ is reserved for computes.

@justinbmeyer
Copy link
Contributor Author

Thumbs up if people would like us to prioritize!

@drecdroid
Copy link

Jinja solves this adding a minus sign after the opening braces or before the closing braces to remove the whitespace before or after the content.
http://jinja.pocoo.org/docs/dev/templates/#whitespace-control

@Schweinepriester
Copy link

As /~https://github.com/canjs/can-stache/releases/tag/v3.3.0 is out, this probably can be closed? :)

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

5 participants