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 handling partials from standalone < tags. #17

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

Conversation

estan
Copy link
Contributor

@estan estan commented Aug 19, 2014

If the < tag is standalone, each non-empty line of the partial should be indented before it is rendered. The spec actually says all lines, not specifically non-empty ones. But the spec tests seems to expect only non-empty ones to be indented, and I've verified that other implementations (e.g. Pystache) do it this way.

3 more test cases now pass. The remaining failures are all related to dotted names and implicit iterators, which are not supported yet. I have no pressing need for them so I might take a break here :)

If the < tag is standalone, each non-empty line of the partial
should be indented before it is rendered. The spec actually says
all lines, not specifically non-empty ones. But the spec tests
expect this and I've verified that other implementations (e.g.
Pystache) does it this way.

3 more test cases now pass.
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.

2 participants