<?php
define("ABS_PATH", $_SERVER['DOCUMENT_ROOT']);
include(ABS_PATH . "/head_nav.php");
include(ABS_PATH . "/middle.php");
?>
          <div class="section">
            <div class="toc-wrapper">
              <span class="toc-title">Contents:</span>
              <ul class="toc">
                  <li class=""><a href="#SYNOPSIS">SYNOPSIS</a></li>
                  <li class=""><a href="#DESCRIPTION">DESCRIPTION</a></li>
                  <li class=""><a href="#METHODS">METHODS</a></li>
                  <li class="sub"><a href="#method_params">params()</a></li>
                  <li class=""><a href="#AUTHOR">AUTHOR</a></li>
                  <li class=""><a href="#COPYRIGHT">COPYRIGHT</a></li>
                  <li class=""><a href="#SEE_ALSO">SEE ALSO</a></li>
              </ul>
            </div>
          </div>
          
                <div class="pod">
            <div class="section">
              <div class="head">
                <h1 id="SYNOPSIS">SYNOPSIS</h1>
                <a href="#body" class="top" title="Back up to the top of the page" >Top</a>
              </div>
              <div class="body">
                <pre><span class="tt">[% USE CGI %]</span>
<span class="tt">[% CGI.param('parameter') %]</span>

<span class="tt">[% USE things = CGI %]</span>
<span class="tt">[% things.param('name') %]</span>

# see CGI docs for other methods provided by the CGI object</pre>
              </div>
            </div>
            <div class="section">
              <div class="head">
                <h1 id="DESCRIPTION">DESCRIPTION</h1>
                <a href="#body" class="top" title="Back up to the top of the page" >Top</a>
              </div>
              <div class="body">
                <p>
                      This is a very simple Template Toolkit Plugin interface to the
                      <code>CGI</code> module. A <code>CGI</code> object will be instantiated
                      via the following directive:
                    </p>
                    <pre><span class="tt">[% USE CGI %]</span></pre>
                    <p>
                      <code>CGI</code> methods may then be called as follows:
                    </p>
                    <pre><span class="tt">[% CGI.header %]</span>
<span class="tt">[% CGI.param('parameter') %]</span></pre>
                    <p>
                      An alias can be used to provide an alternate name by which the object
                      should be identified.
                    </p>
                    <pre><span class="tt">[% USE mycgi = CGI %]</span>
<span class="tt">[% mycgi.start_form %]</span>
<span class="tt">[% mycgi.popup_menu({ Name   =&gt; 'Color'
                      Values =&gt; [ 'Green' 'Black' 'Brown' ] }) %]</span></pre>
                    <p>
                      Parenthesised parameters to the <code>USE</code> directive will be passed
                      to the plugin constructor:
                    </p>
                    <pre><span class="tt">[% USE cgiprm = CGI('uid=abw&amp;name=Andy+Wardley') %]</span>
<span class="tt">[% cgiprm.param('uid') %]</span></pre>
              </div>
            </div>
            <div class="section">
              <div class="head">
                <h1 id="METHODS">METHODS</h1>
                <a href="#body" class="top" title="Back up to the top of the page" >Top</a>
              </div>
              <div class="body">
                <p>
                      In addition to all the methods supported by the <code>CGI</code> module,
                      this plugin defines the following.
                    </p>
                    <div class="subsection">
                  <div class="head">
                    <h2 id="method_params" class="method" onclick="switch_subsection(this)" title="Click title to show/hide sub-section content.">params()</h2>
                    <a href="#body" class="top" title="Back up to the top of the page" >Top</a>
                  </div>
                  <div class="body">
                    <p>
                          This method returns a reference to a hash of all the <code>CGI</code>
                          parameters. Any parameters that have multiple values will be returned as
                          lists.
                        </p>
                        <pre><span class="tt">[% USE CGI('user=abw&amp;item=foo&amp;item=bar') %]</span>
<span class="tt">[% CGI.params.user %]</span>            # abw
<span class="tt">[% CGI.params.item.join(', ') %]</span> # foo, bar</pre>
                  </div>
                </div>
              </div>
            </div>
            <div class="section">
              <div class="head">
                <h1 id="AUTHOR">AUTHOR</h1>
                <a href="#body" class="top" title="Back up to the top of the page" >Top</a>
              </div>
              <div class="body">
                <p>
                      Andy Wardley &lt;abw@wardley.org&gt; <a
                      href="https://wardley.org/">https://wardley.org/</a>
                    </p>
              </div>
            </div>
            <div class="section">
              <div class="head">
                <h1 id="COPYRIGHT">COPYRIGHT</h1>
                <a href="#body" class="top" title="Back up to the top of the page" >Top</a>
              </div>
              <div class="body">
                <p>
                      Copyright (C) 1996-2007 Andy Wardley. All Rights Reserved.
                    </p>
                    <p>
                      This module is free software; you can redistribute it and/or modify it
                      under the same terms as Perl itself.
                    </p>
              </div>
            </div>
            <div class="section">
              <div class="head">
                <h1 id="SEE_ALSO">SEE ALSO</h1>
                <a href="#body" class="top" title="Back up to the top of the page" >Top</a>
              </div>
              <div class="body">
                <p>
                      <a href="../../../modules/Template/Plugin.php">Template::Plugin</a>, <a
                      href="https://metacpan.org/search?query=CGI&mode=all">CGI</a>
                    </p>
              </div>
            </div>
            
            </div>
<?php include(ABS_PATH . "/footer.php"); ?>
