nette/nette — pull request #501 by vojtech-dobes (2012-01-31 06:36:39+00:00)
Title: Dynamic snippets: only they are put to payload

```
{snippet container}
{foreach [1, 2, 3] as $id}
{snippet dynamic-$id} ... {/snippet}
{/foreach}
{/snippet}
```

Now, you have to invalidate only static snippet `container`. With my alteration, you have to invalidate both static snippet and dynamic snippet - and only dynamic snippet is put to payload. I believe it's the ussual desired behavior. Also, when you invalidate only static snippet, it adds only one item to payload.