Debugging template engine