Templer::Site::New - Create a new templer site
use strict; use warnings; use Templer::Site::New; my $site = Templer::Site::New->new(); $site->create( "/tmp/foo" );
This class allows a new templer site to be created on-disk. This involves creating a new input tree, stub configuration file, etc.
templer
The content of the new site, and the directory names, are taken from the DATA section of this class.
This module is free software; you can redistribute it and/or modify it under the terms of either:
a) the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version, or
b) the Perl "Artistic License".
Steve Kemp <steve@steve.org.uk>
Copyright (C) 2012-2015 Steve Kemp <steve@steve.org.uk>.
This library is free software. You can modify and or distribute it under the same terms as Perl itself.
The constructor. No arguments are required/recognized.
Create a new site in the given directory.
This method parses and processes the DATA section of this very module, to know which files/directories to create.
To install App::Templer, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::Templer
CPAN shell
perl -MCPAN -e shell install App::Templer
For more information on module installation, please visit the detailed CPAN module installation guide.