Subject: | Add an option to have only blocks' names case insensitive |
Hi,
I would like to have less contrainst on block names, so I had a little
patch to convert block name to lowercase.
I hope it will be helpfull to smoeone else.
Regards.
Subject: | General.pm.diff |
--- General.pm 2006-03-29 10:43:12.002995824 +0200
+++ General_new.pm 2006-03-24 14:00:15.441276504 +0100
@@ -50,7 +50,7 @@
MergeDuplicateBlocks => 0,
LowerCaseNames => 0,
-
+ LowerCaseBlockNames => 0,
UseApacheInclude => 0,
IncludeRelative => 0,
IncludeDirectories => 0,
@@ -675,7 +675,7 @@
$blockname = $this->_interpolate("<$blockname>", $blockname);
}
}
- $block = lc($block) if $this->{LowerCaseNames}; # only for blocks lc(), if configured via new()
+ $block = lc($block) if ($this->{LowerCaseNames} or $this->{LowerCaseBlockNames}); # only for blocks lc(), if configured via new()
$this->{level} += 1;
undef @newcontent;
next;
@@ -1269,6 +1269,13 @@
+=item B<-LowerCaseBlockNames>
+
+If set to a true value, then all block names found in the config will be converted
+to lowercase. This allows you to provide less strict configs.
+
+
+
=item B<-UseApacheInclude>
If set to a true value, the parser will consider "include ..." as valid include