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

Add unit tests to describe bugs from #1261 and #997. #1264

Closed
wants to merge 7 commits into from
Closed

Add unit tests to describe bugs from #1261 and #997. #1264

wants to merge 7 commits into from

Conversation

thomas-riccardi
Copy link

include.jade: the order of block appends is not the expected one (file order)

other .jade: block append should not return its value to its parent like block does: it should only modify the block it's referring to.

*include*.jade: the order of _block appends_ is not the expected one (file order)

other .jade: _block append_should not return its value to its parent like _block_ does: it should only modify the block it's referring to.
@ForbesLindesay
Copy link
Member

It looks like there are a couple of files missing (from the travis-ci results)

@thomas-riccardi
Copy link
Author

... here it is.

@buschtoens
Copy link

#1267 actually is a duplicate of this.
#1271 could serve as a possible solution, if the population and inheritance of blocks is done the right way.

block body
p body
block body
p in body in append head

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo. p in body in replace body or something like that would be more appropriate here. ;)

Taking my thoughts on #1271 into account this once again highlights the ambiguity of the block my-block statement.

…e block is not referenced in the including .jade
…s ignored.

The append action is not visible in the result, but the block append is not totally ignored as it yields the current value of the block.
…t's currently ignored.

It works when the block is not already redefined in the extending block, see layout.block.replace-block-in-other-block-without-prior-block.jade (except for the unexpected yielding).
@thomas-riccardi
Copy link
Author

Stopped working on this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants