NAME

Top Close Open

Template::TT3::Type::Params - wafer thin subclass of Template::TT3::Type::Hash

SYNOPSIS

Top Close Open
# see Template::TT3::Type::Hash

DESCRIPTION

Top Close Open

Template::TT3::Type::Params is a wafer thin subclass of Template::TT3::Type::Hash .

It is used to store named parameters that are passed to a subroutine or object method from TT.

The subroutine/method can inspect the final argument passed to see if it is an instance of Template::TT3::Type::Params.

foo({ a = 10, b = 20 })   # regular hash array
foo(a = 10, b = 20)       # named params

AUTHOR

Top Close Open

Andy Wardley <abw@wardley.org>

COPYRIGHT

Top Close Open

Copyright (C) 1996-2009 Andy Wardley. All Rights Reserved.

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.


http://tt3.template-toolkit.org/docs/Template/TT3/Type/Params.pm last modified 2009-11-26 15:26:32