Index: lib/dom/scripts/templateloader.py |
diff --git a/lib/dom/scripts/templateloader.py b/lib/dom/scripts/templateloader.py |
index f7229f477be2c1b14f545358a2ffcf9bd3aa38ea..3c9507174ddca14cb6d5a91e15cf090fb3e17f0e 100644 |
--- a/lib/dom/scripts/templateloader.py |
+++ b/lib/dom/scripts/templateloader.py |
@@ -7,6 +7,7 @@ |
# |
# Preprocessor language: |
# |
+# //$ Comment line removed by preprocessor |
# $if VAR |
# $else |
# $endif |
@@ -101,6 +102,8 @@ class TemplateLoader(object): |
# Something else, like '$!MEMBERS' |
if active: |
out.append(full_line) |
+ elif line.startswith('//$'): |
+ pass # Ignore pre-processor comment. |
else: |
if active: |