Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
Toader::Templates::DefUsersContributed Perl DocuToader::Templates::Defaults(3)

NAME
       Toader::Templates::Defaults - This provides the default templates for
       Toader.

VERSION
       Version 0.3.0

SYNOPSIS
	   use Toader::Templates::Defaults;

	   #initiates the object
	   my $foo = Toader::Templates::Defaults->new;

	   #fetches the	css template
	   my $template=$foo->getPage('css');
	   if (	$foo->error ){
	       warn('Error:'.$foo->error.': '.$foo->errorString);
	   }

METHODS
   new
       This initiates the object.

       This method does	not error.

	   my $foo=Toader::Template::Defaults->new;

   exists
       This checks if the specified template exists as a default template.

       One argument is required	and that is the	template name to check for.
       This method will	only throw a error if it is left undefined.

       The return value	is a Perl boolean value.

	   my $exists=$foo->exists($template);

   getTemplate
       This returns a default template.

       One argument is required	and it is the template name.

       There is	no need	to do error checking, if one is	certian	the template
       exists.

	   my $template=$foo->getTemplate( $name );
	   if (	$foo->error ){
	       warn( 'Error:'.$foo->error.': '.$foo->errorString );
	   }

   listTemplates
       This returns a list of default templates.

       No arguments are	taken.

	   my @defTemplates=$foo->listTemplates;

ERROR CODES/FLAGS
   1, noTemplateNameSpecified
       No template name	specified.

   2, noSuchTemplate
       No such template.

AUTHOR
       Zane C. Bowers-Hadley, "<vvelox at vvelox.net>"

BUGS
       Please report any bugs or feature requests to "bug-toader at
       rt.cpan.org", or	through	the web	interface at
       <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Toader>.	 I will	be
       notified, and then you'll automatically be notified of progress on your
       bug as I	make changes.

SUPPORT
       You can find documentation for this module with the perldoc command.

	   perldoc Toader::Templates::Defaults

       You can also look for information at:

       o   RT: CPAN's request tracker

	   <http://rt.cpan.org/NoAuth/Bugs.html?Dist=Toader>

       o   AnnoCPAN: Annotated CPAN documentation

	   <http://annocpan.org/dist/Toader>

       o   CPAN	Ratings

	   <http://cpanratings.perl.org/d/Toader>

       o   Search CPAN

	   <http://search.cpan.org/dist/Toader/>

ACKNOWLEDGEMENTS
LICENSE	AND COPYRIGHT
       Copyright 2013 Zane C. Bowers-Hadley.

       This program is free software; you can redistribute it and/or modify it
       under the terms of either: the GNU General Public License as published
       by the Free Software Foundation;	or the Artistic	License.

       See http://dev.perl.org/licenses/ for more information.

perl v5.32.1			  2016-01-07	Toader::Templates::Defaults(3)

NAME | VERSION | SYNOPSIS | METHODS | ERROR CODES/FLAGS | AUTHOR | BUGS | SUPPORT | ACKNOWLEDGEMENTS | LICENSE AND COPYRIGHT

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=Toader::Templates::Defaults&sektion=3&manpath=FreeBSD+13.0-RELEASE+and+Ports>

home | help