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
Block inheritance only works if block.super is included #273
Comments
I'm not actually able to reproduce this in a minimal project here. One thing I notice is that you have |
Confirmed the More detailed steps to ensure we're in sync:
Wasn't able to solve it by removing the leading slash. To date cryogen's convention starts with a slash: I modified a copy of
Thanks. |
Interesting, not sure what happens in Cryogen to cause the issue. If we could replicate that in the standalone project that would help zero in on what's happening. Also, could you add the error message that'd be at the top of the trace. Might give a hint of what's tripping the parser up. |
Pardon leaving the error out:
I've created a project reproduce it: Full stack trace, also in repo as
Thanks. |
We're not providing the optional
And later when we call
StringBuilder.append returns a StringBuilder: So I'm not sure the exact fix, maybe as easy as giving a new StringBuilder on line 116. Pardon my if I've hung you up on this, thanks for being responsive. I can try this and report back if I don't hear anything before I get around to it. I'm not blocked since I can use the workaround, just wanted to get it posted so I didn't lose track. Thanks. |
Isolated it in the selmer-test project. Needs to have 3 layers of inheritance with an include in the middle layer. Confirmed that it worked until 1.12.29. In my project I'd gotten another error about includes with that version where I mentioned it works until 1.12.28 above. If the fix isn't obvious I can go back and reproduce it. base.html:
post-content.html:
post.html:
foo.html
|
Thanks for isolating the case, I'll have to take a look to see what the regression was between the commits there. |
Looks like the fix was simply to ensure that |
I was able to add |
I copied my site theme and content from a
cryogen-core
0.3.2 based project to a freshlein new cryogen
that uses0.4.1
. These useselmer
1.12.27 and 1.12.31 respectively.I have a template that inherits from the default
:post
layout and overrides thecontent
block. I hit an error inconsume-block
which I was able narrow down adding<!-- hack {{ block.super }} -->
to my template. I was also able to resolve it by depending on versions as late as 1.12.28 directly in my project.clj.Minimal template:
If I run the build with latest
selmer
1.12.31 it works, and then remove the commented section it fails.The error:
The text was updated successfully, but these errors were encountered: