Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Support ~ for eliminating whitespaces between nodes #10

Closed
sunng87 opened this issue Feb 12, 2015 · 1 comment
Closed

Support ~ for eliminating whitespaces between nodes #10

sunng87 opened this issue Feb 12, 2015 · 1 comment

Comments

@sunng87
Copy link
Owner

sunng87 commented Feb 12, 2015

Syntax

{{#each nav ~}}
  <a href="{{url}}">
    {{~#if test}}
      {{~title}}
    {{~^~}}
      Empty
    {{~/if~}}
  </a>
{{~/each}}

~ is to remove whitespaces before or after helpers

@sunng87
Copy link
Owner Author

sunng87 commented Mar 15, 2015

The current parser should have issue when dealing with {{{~ xxx ~}}}. The current workaround is to write in this way: {{~{ xxx }~}}.

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

1 participant