-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Partials indentation #705
Partials indentation #705
Conversation
Awesome, thanks for the quick response! I'm currently on holiday, will have
a look when I'm back.
…On Tue, 9 Jul 2019 at 08:46, Yotam Madem ***@***.***> wrote:
------------------------------
You can view, comment on, or merge this pull request online at:
#705
Commit Summary
- Indent Partials
- merge with master
- add mustache partials spec and fix one broken test
File Changes
- *M* mustache.js
<https://github.com/janl/mustache.js/pull/705/files#diff-0> (44)
- *M* test/mustache-spec-test.js
<https://github.com/janl/mustache.js/pull/705/files#diff-1> (3)
- *M* test/parse-test.js
<https://github.com/janl/mustache.js/pull/705/files#diff-2> (9)
- *A* test/partial-test.js
<https://github.com/janl/mustache.js/pull/705/files#diff-3> (112)
Patch Links:
- https://github.com/janl/mustache.js/pull/705.patch
- https://github.com/janl/mustache.js/pull/705.diff
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#705?email_source=notifications&email_token=AAJMWE6FVWODGPDSHL2RCWDP6QX4XA5CNFSM4H7CESR2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4G6AP36A>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAJMWE6MQ2DQGXVHQV4423TP6QX4XANCNFSM4H7CESRQ>
.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work dude! We should merge this for sure!
Soooo I'm finally back from a long vacation + some general time off the interwebz, sorry for keeping you waiting so long, thanks for your patience. |
As referenced in this issue: #562 Partials aren't indented as per the spec: https://github.com/mustache/spec/blob/master/specs/partials.yml#L13-L15 This adds indentation tracking for partials and applies them to the first instance of a partial on a line (to not indent inline partials which would violate a different part of the spec).
Great work and thank you so much for your patience! 👍 FYI with the main intention of cleaning up the commits before landing, I got rid of the merge-with-master commit + latest |
Thanks Phillipe for reviewing and merging the solution. Now I will finally be able to use the official mustsche module at my work place. (Until now I used a forked version) |
v3.0.2 just got published to npm, so enjoy 🚀 |
A fix for: #562