The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Egg::View::Template::Params - Some parameters are set in Egg::View.

SYNOPSIS

  use Egg::View::Template::Params;
  
  # The call to E::V::Template::Params is added to '_prepare' call of Egg.
  sub _prepare {
    my($e)= @_;
    Egg::View::Template::Params->prepare($e);
    $e->next::method;
  }

DESCRIPTION

Some parameters are set to %PARAMS of Egg::View as a default value.

%PARAMS can be referred by the params method of received view and be set again.

METHODS

prepare ( [PROJECT_OBJ] )

Some parameters are set to %PARAMS of Egg::View.

When Egg::View::Template is used, it is not necessary to set it separately because this module is used by default.

Please it doesn't operate normally if you do not give PROJECT_OBJ.

When this method is called, the following parameters are set.

  • title

    Title name of project on configuration

  • page_title

    Reference to $e->page_title.

  • script_name

    Reference to $e->request->script_name.

  • path

    Reference to $e->request->path.

  • path_info

    Reference to $e->request->path_info.

  • is_secure

    Reference to $e->request->secure.

  • remote_addr

    Reference to $e->request->remote_addr.

  • host_name

    Reference to $e->request->host_name.

  • server_port

    Reference to $e->request->port.

  • http_referer

    Reference to $e->request->referer.

  • http_agent

    Reference to $e->request->agent.

  • request_uri

    Reference to $e->request->uri.

  • copyright

    '[PROJECT_NAME] Ver:[PROJECT_VERSION]'

SEE ALSO

Egg::View, Egg::View::Template, Egg::Release,

AUTHOR

Masatoshi Mizuno <lushe@cpan.org>

COPYRIGHT

Copyright (C) 2007 by Bee Flag, Corp. <http://egg.bomcity.com/>, All Rights Reserved.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.6 or, at your option, any later version of Perl 5 you may have available.