Fix compatibility with Nette Framework

Now, it is tested. And it works for me.
Sorry for mess. I am starting with git. This is my first pull :)
Tests: fixed templates compatibility