Mason::Tidy - Engine for masontidy
use Mason::Tidy; my $mc = Mason::Tidy->new(); my $dest = $mc->tidy($source);
This is the engine used by masontidy - read that first to get an overview.
You can call this API from your own program instead of executing
These options are the same as the equivalent
masontidy command-line options, replacing dashes with underscore (e.g. the
--indent-per-block option becomes
Tidy component source $source and return the tidied result. Throw fatal error if source cannot be tidied (e.g. invalid syntax).
Getopt::Long::GetOptions to parse the options in $argv and place params in $params appropriate for passing into the constructor. Returns the return value of
Jonathan Swartz <firstname.lastname@example.org>
This software is copyright (c) 2011 by Jonathan Swartz.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.