fix template compiler dealing with html comments