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

Fix partials to indent as demanded by the mustache spec #26

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ghost
Copy link

@ghost ghost commented Jan 29, 2017

The mustache specs 1 and testsuite 2, as well as the lustache README.md 3
demand that partials be indented.

Be warned: This is a horrible hack that searches the start of the current line during partials rendering and indents the rendered lines after the fact. I assume it is possible to track beginnings of lines during parsing and use that information while rendering partials, but I could not figure out how.

@ghost ghost force-pushed the fix/indented-partials branch from 635058f to 341b9db Compare January 29, 2017 04:25
@ghost ghost force-pushed the fix/indented-partials branch from 341b9db to ee65a86 Compare February 1, 2017 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants