Allow for class mappings to wildcard match against either the node name or node file path
By default a class mapping will match against the name of a node:
class_mappings:
- test* alpha
This will match all nodes names starting with test.
A possibly unintended side effect of the original implementation allowed
for matches against the path of the node file. So for a node file
'test/node1.yml' a match:
class_mappings:
- test/* alpha
would work. A reworking of the class mappings implementation ment this
matching stopped working. The type of matching done by the class mapping
is now controlled by the configuration option class_mappings_match_path.
If false (the default) the match is done against the node name and if true
the match is done again the path.
diff --git a/doc/source/operations.rst b/doc/source/operations.rst
index f744148..08b34e5 100644
--- a/doc/source/operations.rst
+++ b/doc/source/operations.rst
@@ -101,6 +101,13 @@
can be assigned to each mapping by providing a space-separated list (class
names cannot contain spaces anyway).
+By default the class mappings regex match is done against the node name. This can
+be changed to do the match against the path of the node file from the classes
+directory, but dropping the .yml extension at the end of the node file. This is
+controlled with the setting class_mappings_match_path. When False (the
+default) the match is done again the node name and when true the match is done
+against the node file path.
+
.. warning::
The class mappings do not really belong in the configuration file, as they