Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

masonx::processdir(3pm) [debian man page]

MasonX::ProcessDir(3pm) 				User Contributed Perl Documentation				   MasonX::ProcessDir(3pm)

NAME
MasonX::ProcessDir - Process a directory of Mason 2 templates VERSION
version 0.02 SYNOPSIS
use MasonX::ProcessDir; # Generate result files in the same directory as the templates # my $pd = MasonX::ProcessDir->new( dir => '/path/to/dir' ); $pd->process_dir(); # Generate result files in a separate directory # my $pd = MasonX::ProcessDir->new( source_dir => '/path/to/source/dir', dest_dir => '/path/to/dest/dir' ); $pd->process_dir(); DESCRIPTION
Recursively processes a directory of Mason 2 templates, generating a set of result files in the same directory or in a parallel directory. Every file with suffix ".mc" will be processed, and the results placed in a file of the same name without the suffix. ".mi", autobase and dhandler files will be used by Mason when processing the templates but will not generate files themselves. For example, if the source directory contains Base.mc httpd.conf.mc proxy.conf.mc etc/crontab.mc blah.mi somefile.txt and we run my $pd = MasonX::ProcessDir->new( source_dir => '/path/to/source/dir', dest_dir => '/path/to/dest/dir' ); $pd->process_dir(); then afterwards the destination directory will contain files httpd.conf proxy.conf etc/crontab somefile.txt where foo and bar are the results of processing foo.mc and bar.mc through Mason. Base.mc and blah.mi may be used during Mason processing but won't generate result files themselves. This class is a convenience extension of Any::Template::ProcessDir. CONSTRUCTOR
Specifying directory/directories o If you want to generate the result files in the same directory as the templates, just specify dir. my $pd = MasonX::ProcessDir->new( dir => '/path/to/dir', ... ); o If you want to generate the result files in a separate directory from the templates, specify source_dir and dest_dir. my $pd = MasonX::ProcessDir->new( source_dir => '/path/to/source/dir', source_dir => '/path/to/dest/dir', ... ); Mason options mason_options An optional hash of options to the Mason interpreter. For example, the default Mason data directory will be ".mason" under the source directory, but you can override this: mason_options => { data_dir => '/path/to/data/dir' } Options inherited from Any::Template::ProcessDir See Any::Template::ProcessDir for other options, such as dir_create_mode file_create_mode readme_filename SUPPORT AND DOCUMENTATION
Bugs and feature requests will be tracked at RT: http://rt.cpan.org/NoAuth/Bugs.html?Dist=MasonX-ProcessDir bug-masonx-processdir@rt.cpan.org The latest source code can be browsed and fetched at: http://github.com/jonswar/perl-masonx-processdir git clone git://github.com/jonswar/perl-masonx-processdir.git SEE ALSO
Mason, Any::Template::ProcessDir AUTHOR
Jonathan Swartz <swartz@pobox.com> COPYRIGHT AND LICENSE
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. perl v5.14.2 2012-03-07 MasonX::ProcessDir(3pm)

Check Out this Related Man Page

Poet(3pm)						User Contributed Perl Documentation						 Poet(3pm)

NAME
Poet -- a modern Perl web framework for Mason developers SYNOPSIS
% poet new MyApp my_app/.poet_root my_app/bin/app.psgi ... % my_app/bin/run.pl Running plackup --Reload ... --env development --port 5000 Watching ... for file updates. HTTP::Server::PSGI: Accepting connections at http://0:5000/ DESCRIPTION
Poet is a modern Perl web framework designed especially for Mason developers. It uses PSGI/Plack for server integration, Mason for request routing and templating, and a selection of best-of-breed CPAN modules for caching, logging and configuration. FEATURES
o A common-sense directory hierarchy for web development o A configuration system that scales elegantly with multiple coders and multiple layers (development/production) o Integration with Log4perl for logging, wrapped with dead-simple configuration o Integration with CHI for powerful and flexible caching o The power of Mason, an object-oriented templating system, for request routing and content generation o Easy access to common objects and utilities from anywhere in your application o Conventions and defaults based on the author's best practices from over fifteen years of Perl web development; and o The freedom to override just about any of Poet's behaviors DOCUMENTATION
All documentation is indexed at Poet::Manual. SUPPORT
For now Poet will share a mailing list and IRC with Mason. The Mason mailing list is "mason-users@lists.sourceforge.net"; you must be subscribed <https://lists.sourceforge.net/lists/listinfo/mason-users> to send a message. The Mason IRC channel is #mason <irc://irc.perl.org/#mason>. Bugs and feature requests will be tracked at RT: http://rt.cpan.org/NoAuth/Bugs.html?Dist=Poet bug-poet@rt.cpan.org The latest source code can be browsed and fetched at: http://github.com/jonswar/perl-poet git clone git://github.com/jonswar/perl-poet.git ACKNOWLEDGEMENTS
Poet was originally designed and developed for the Digital Media group of the Hearst Corporation, a diversified media company based in New York City. Many thanks to Hearst for agreeing to this open source release. However, Hearst has no direct involvement with this open source release and bears no responsibility for its support or maintenance. SEE ALSO
Mason, Plack, PSGI AUTHOR
Jonathan Swartz <swartz@pobox.com> COPYRIGHT AND LICENSE
This software is copyright (c) 2012 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. perl v5.14.2 2012-06-05 Poet(3pm)
Man Page