[patch] Comment tag that doesn't generate a nodelist
|Reported by:||django@…||Owned by:||adrian|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
The existing comment tag actually builds a nodelist from its contents. This means that you can't comment out broken template tags during debugging because they still generate exceptions.
This patch adds a skip_past(endtagname) method to the parser so that the comment tag can ignore its contents.