<?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="#EXPORTABLE_TAG_SETS">EXPORTABLE TAG SETS</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>use Template::Constants qw( :status :error :all );</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>
                      The <code>Template::Constants</code> modules defines, and optionally
                      exports into the caller's namespace, a number of constants used by the <a
                      href="../../modules/Template.php">Template</a> package.
                    </p>
                    <p>
                      Constants may be used by specifying the <code>Template::Constants</code>
                      package explicitly:
                    </p>
                    <pre>use Template::Constants;
print Template::Constants::STATUS_DECLINED;</pre>
                    <p>
                      Constants may be imported into the caller's namespace by naming them as
                      options to the <code>use Template::Constants</code> statement:
                    </p>
                    <pre>use Template::Constants qw( STATUS_DECLINED );
print STATUS_DECLINED;</pre>
                    <p>
                      Alternatively, one of the following tagset identifiers may be specified
                      to import sets of constants: '<code>:status</code>',
                      '<code>:error</code>', '<code>:all</code>'.
                    </p>
                    <pre>use Template::Constants qw( :status );
print STATUS_DECLINED;</pre>
                    <p>
                      Consult the documentation for the <code>Exporter</code> module for more
                      information on exporting variables.
                    </p>
              </div>
            </div>
            <div class="section">
              <div class="head">
                <h1 id="EXPORTABLE_TAG_SETS">EXPORTABLE TAG SETS</h1>
                <a href="#body" class="top" title="Back up to the top of the page" >Top</a>
              </div>
              <div class="body">
                <p>
                      The following tag sets and associated constants are defined:
                    </p>
                    <pre>:status
    STATUS_OK             # no problem, continue
    STATUS_RETURN         # ended current block then continue (ok)
    STATUS_STOP           # controlled stop (ok) 
    STATUS_DONE           # iterator is all done (ok)
    STATUS_DECLINED       # provider declined to service request (ok)
    STATUS_ERROR          # general error condition (not ok)

:error
    ERROR_RETURN          # return a status code (e.g. 'stop')
    ERROR_FILE            # file error: I/O, parse, recursion
    ERROR_UNDEF           # undefined variable value used
    ERROR_PERL            # error in <span class="tt">[% PERL %]</span> block
    ERROR_FILTER          # filter error
    ERROR_PLUGIN          # plugin error

:chomp                  # for PRE_CHOMP and POST_CHOMP
    CHOMP_NONE            # do not remove whitespace
    CHOMP_ONE             # remove whitespace to newline
    CHOMP_ALL             # old name for CHOMP_ONE (deprecated)
    CHOMP_COLLAPSE        # collapse whitespace to a single space
    CHOMP_GREEDY          # remove all whitespace including newlines

:debug
    DEBUG_OFF             # do nothing
    DEBUG_ON              # basic debugging flag
    DEBUG_UNDEF           # throw undef on undefined variables
    DEBUG_VARS            # general variable debugging
    DEBUG_DIRS            # directive debugging
    DEBUG_STASH           # general stash debugging
    DEBUG_CONTEXT         # context debugging
    DEBUG_PARSER          # parser debugging
    DEBUG_PROVIDER        # provider debugging
    DEBUG_PLUGINS         # plugins debugging
    DEBUG_FILTERS         # filters debugging
    DEBUG_SERVICE         # context debugging
    DEBUG_ALL             # everything
    DEBUG_CALLER          # add caller file/line info
    DEBUG_FLAGS           # bitmap used internally

:all
    All the above constants.</pre>
              </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.php">Template</a>,
                      <code>Exporter</code>
                    </p>
              </div>
            </div>
            
            </div>
<?php include(ABS_PATH . "/footer.php"); ?>
