summaryrefslogtreecommitdiff
path: root/posts/2009-05-30-catalystx-dispatcher-asgraph.md
diff options
context:
space:
mode:
authorFranck Cuny <franckcuny@gmail.com>2016-07-31 10:16:40 -0700
committerFranck Cuny <franckcuny@gmail.com>2016-07-31 13:42:48 -0700
commit63f413891d5adc596e4d51dfba4d0d23fdea3ca4 (patch)
treec2726b60515057a20f434bd89c596360ef17852b /posts/2009-05-30-catalystx-dispatcher-asgraph.md
parentAdd Google Analytic tracker. (diff)
downloadlumberjaph-63f413891d5adc596e4d51dfba4d0d23fdea3ca4.tar.gz
Stop generating a static site.
Diffstat (limited to 'posts/2009-05-30-catalystx-dispatcher-asgraph.md')
-rw-r--r--posts/2009-05-30-catalystx-dispatcher-asgraph.md21
1 files changed, 21 insertions, 0 deletions
diff --git a/posts/2009-05-30-catalystx-dispatcher-asgraph.md b/posts/2009-05-30-catalystx-dispatcher-asgraph.md
new file mode 100644
index 0000000..c11fa2c
--- /dev/null
+++ b/posts/2009-05-30-catalystx-dispatcher-asgraph.md
@@ -0,0 +1,21 @@
+This morning I saw [this post](http://marcus.nordaaker.com/awesome-route-graph-with-mojoxroutesasgraph/) from Marcus Ramberg about [MojoX::Routes::AsGraph](http://search.cpan.org/perldoc?MojoX::Routes::AsGraph). I liked the idea. But as I Catalyst instead of Mojo, I thought I could give a try and do the same thing for Catalyst dispatcher, and I've coded CatalystX::Dispatcher::AsGraph. For the moment only private actions are graphed.
+
+<img src='/imgs/routes-300x249.webp' alt='routes'>
+
+You use it like this: `perl bin/catalyst_graph_dispatcher.pl --appname Arkham --output routes.png`
+
+You can create a simple script to output as text if you prefer:
+
+```perl
+#!/usr/bin/perl -w
+use strict;
+use CatalystX::Dispatcher::AsGraph;
+
+my $graph = CatalystX::Dispatcher::AsGraph->new_with_options();
+$graph->run;
+print $graph->graph->as_txt;
+```
+
+The code is on [my git server](http://git.lumberjaph.net/p5-catalystx-dispatcher-asgraph.git/) for the moment.
+
+For thoses who are interested by visualization, I'll publish soon some (at least I think) really nice visualisations about CPAN, Perl, and his community, that we have created at [$work](http://rtgi.fr).