I have posted 1.78.3 and I have temporarily reverted the new template.py to the old one.
The new one is the one we want. It is more modular and has support for blocks, but it causes some incompatibility issues that I should have tested before. We are working so that we can move on to the new template.py without breaking existing code while providing {{block}}s.