Removes debugging statements from template