[Bps-public-commit] Path-Dispatcher branch, master, updated. b2257f78ae27aba293c264db45d33f827fa56ced

Shawn Moore sartak at bestpractical.com
Sun Oct 24 03:11:42 EDT 2010


The branch, master has been updated
       via  b2257f78ae27aba293c264db45d33f827fa56ced (commit)
      from  e8b69931b484269e728c427022b82c8f6739b16b (commit)

Summary of changes:
 lib/Path/Dispatcher.pm |   11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)

- Log -----------------------------------------------------------------
commit b2257f78ae27aba293c264db45d33f827fa56ced
Author: Shawn M Moore <sartak at bestpractical.com>
Date:   Sun Oct 24 16:11:44 2010 +0900

    Point to tab completion

diff --git a/lib/Path/Dispatcher.pm b/lib/Path/Dispatcher.pm
index 0572ad6..c313d4b 100644
--- a/lib/Path/Dispatcher.pm
+++ b/lib/Path/Dispatcher.pm
@@ -116,6 +116,10 @@ rules, and it returns a list of matches. From there you can "run" the rules
 that matched. These phases are distinct so that, if you need to, you can
 inspect which rules were matched without ever running their codeblocks.
 
+Tab completion support is also available (see in particular
+L<Path::Dispatcher::Cookbook/How can I configure tab completion for shells?>)
+for the dispatchers you write.
+
 Each rule may take a variety of different forms (which I think justifies the
 "flexible" adjective in the module's description). Some of the rule types are:
 
@@ -131,11 +135,14 @@ Match one of a set of strings.
 
 =item L<Path::Dispatcher::Rule::CodeRef>
 
-Execute a coderef to determine whether the path matches the rule.
+Execute a coderef to determine whether the path matches the rule. So you can
+do anything you like. Though writing a domain-specific rule (see below) will
+enable better introspection and encoding intent.
 
 =item L<Path::Dispatcher::Rule::Dispatch>
 
-Use another L<Path::Dispatcher> to match the path.
+Use another L<Path::Dispatcher> to match the path. This facilitates both
+extending dispatchers (a bit like subclassing) and delegating to plugins.
 
 =back
 

-----------------------------------------------------------------------



More information about the Bps-public-commit mailing list