h1. Visualizing Paths in MojoMojo

h2. Overview

I just stumbled across {{CatalystX::Dispatcher::AsGraph}} which enables one to create a graph of the private actions in their Catalyst application. Let's apply it to MojoMojo.

h2. The Script

This script will generate a .dot graph file of the MojoMojo private actions:

use strict;
use warnings;
use CatalystX::Dispatcher::AsGraph;
use lib '/path/to/MojoMojo/lib'my $graph = CatalystX::Dispatcher::AsGraph->new(
    appname => 'MojoMojo',
$graph->run;#print $graph->graph->as_ascii;
if (open(my $dot'>''MojoMojo.dot')) {
    print $dot $graph->graph->as_graphviz;

![alt text](http://mojomojo.org/documentation/MojoMojo_Private_Paths_Visualized.attachment/72/thumb "Optional title goes here" )