Closed dtb closed 10 years ago
@nemtsov any chance you could take a look at this? It seems like you might be familiar with the multi-level inheritance stuff. As far as I could tell, this doesn't happen with single-level inheritance.
@dtb absolutely. I'll take a look this weekend.
@dtb give my PR a try when you get a chance please.
@nemtsov thanks a lot! I just tried again and #162 seems to fix it. Hope we can get this merged in.
I was playing around with template inheritance, and found that if I compile the “parent” templates, multi-level inheritance breaks.
When I render 2 different child templates that use the same parents, the second template will output the same thing as the first one, when it shouldn't. I created a test case based on the existing tests, here: https://gist.github.com/dtb/8849297.
I found that if I clear the cache (
Hogan.cache = []
) between tests, the tests pass.