nextras/latte-macros — pull request #2 by Quinix (2014-05-07 10:31:08+00:00)
Title: Clear namedBlocks after each template is compiled

I have multiple templates with (re)defined block which are included to each other (eg. common.latte with some blocks that are same for more templates).

Currently all redefined blocks was complied to every template - eg. if foo.latte redefined block "foo" and included comon.latte, compiled common.latte also contained code for block "foo".

This pull clears blocks array after each template is finalized, which fix the issue.