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

Whitespace Control #479

Closed
quangv opened this issue Apr 4, 2013 · 1 comment
Closed

Whitespace Control #479

quangv opened this issue Apr 4, 2013 · 1 comment
Labels

Comments

@quangv
Copy link

quangv commented Apr 4, 2013

Hi, does Handlebars support anything like Jinja2 Whitespace Control... which removes leading or trailing whitespace from blocks...

{{name}}
{{#if age}}
  , {{age}}
{{/if}}

# outputs {{name}} , {{age}}
# desire: {{name}}, {{age}}

Trying to have readable templates... yet fine-grain whitespace control for single line text... any suggestions would help.

Thanks.

@kpdecker
Copy link
Collaborator

kpdecker commented Apr 7, 2013

I really like this idea. Noted on #336. Closing this issue so we can consolidate whitespace handling issues on one bug.

@kpdecker kpdecker closed this as completed Apr 7, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants