Used listener instead of hacky hack in Twig extension, fixes #14.
Merge pull request #15 from umpirsky/issue-14

Used listener instead of hacky hack in Twig extension, fixes #14.