<?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="#USAGE">USAGE</a></li>
                  <li class=""><a href="#DESCRIPTION">DESCRIPTION</a></li>
                  <li class="sub"><a href="#section_The_i_tpagerc_i_Configuration_File">The <i>.tpagerc</i> Configuration File</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="USAGE">USAGE</h1>
                <a href="#body" class="top" title="Back up to the top of the page" >Top</a>
              </div>
              <div class="body">
                <pre>tpage [ --define var=value ] file(s)</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 <b>tpage</b> script is a simple wrapper around the Template Toolkit
                      processor. Files specified by name on the command line are processed in
                      turn by the template processor and the resulting output is sent to STDOUT
                      and can be redirected accordingly. e.g.
                    </p>
                    <pre>tpage myfile &gt; myfile.out
tpage header myfile footer &gt; myfile.php</pre>
                    <p>
                      If no file names are specified on the command line then <b>tpage</b> will
                      read STDIN for input.
                    </p>
                    <p>
                      The <code>--define</code> option can be used to set the values of
                      template variables. e.g.
                    </p>
                    <pre>tpage --define author="Andy Wardley" skeleton.pm &gt; MyModule.pm</pre>
                    <div class="subsection">
                  <div class="head">
                    <h2 id="section_The_i_tpagerc_i_Configuration_File" onclick="switch_subsection(this)" title="Click title to show/hide sub-section content.">The <i>.tpagerc</i> Configuration File</h2>
                    <a href="#body" class="top" title="Back up to the top of the page" >Top</a>
                  </div>
                  <div class="body">
                    <p>
                          You can use a <i>.tpagerc</i> file in your home directory.
                        </p>
                        <p>
                          The purpose of this file is to set any <i>global</i> configuration
                          options that you want applied <i>every</i> time <i>tpage</i> is run. For
                          example, you can use the <code>include_path</code> to use template files
                          from a generic template directory.
                        </p>
                        <p>
                          Run <code>tpage -h</code> for a summary of the options available.
                        </p>
                        <p>
                          See <a href="../modules/Template.php">Template</a> for general
                          information about the Perl Template Toolkit and the template language and
                          features.
                        </p>
                  </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 <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-2008 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="../tools/ttree.php">ttree</a>
                    </p>
              </div>
            </div>
            
            </div>
<?php include(ABS_PATH . "/footer.php"); ?>
