<?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="#BUGS">BUGS</a></li>
                  <li class=""><a href="#AUTHORS">AUTHORS</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;
use Template::Stash::XS;

my $stash = Template::Stash::XS-&gt;new(\%vars);
my $tt2   = Template-&gt;new({ STASH =&gt; $stash });</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 Template:Stash::XS module is an implementation of the Template::Stash
                      written in C. The "XS" in the name refers to Perl's XS extension system
                      for interfacing Perl to C code. It works just like the regular Perl
                      implementation of Template::Stash but runs about twice as fast.
                    </p>
                    <p>
                      The easiest way to use the XS stash is to configure the Template Toolkit
                      to use it by default. You can do this at installation time (when you run
                      <code>perl Makefile.PL</code>) by answering 'y' to the questions:
                    </p>
                    <pre>Do you want to build the XS Stash module?      y
Do you want to use the XS Stash by default?    y</pre>
                    <p>
                      See the <i>INSTALL</i> file distributed with the Template Toolkit for
                      further details on installation.
                    </p>
                    <p>
                      If you don't elect to use the XS stash by default then you should use the
                      <code>STASH</code> configuration item when you create a new Template
                      object. This should reference an XS stash object that you have created
                      manually.
                    </p>
                    <pre>use Template;
use Template::Stash::XS;

my $stash = Template::Stash::XS-&gt;new(\%vars);
my $tt2   = Template-&gt;new({ STASH =&gt; $stash });</pre>
                    <p>
                      Alternately, you can set the <code>$Template::Config::STASH</code>
                      package variable like so:
                    </p>
                    <pre>use Template;
use Template::Config;

$Template::Config::STASH = 'Template::Stash::XS';

my $tt2 = Template-&gt;new();</pre>
                    <p>
                      The XS stash will then be automatically used.
                    </p>
                    <p>
                      If you want to use the XS stash by default and don't want to re-install
                      the Template Toolkit, then you can manually modify the
                      <code>Template/Config.pm</code> module near line 42 to read:
                    </p>
                    <pre>$STASH = 'Template::Stash::XS';</pre>
              </div>
            </div>
            <div class="section">
              <div class="head">
                <h1 id="BUGS">BUGS</h1>
                <a href="#body" class="top" title="Back up to the top of the page" >Top</a>
              </div>
              <div class="body">
                <p>
                      Please report bugs to the Template Toolkit mailing list
                      templates@template-toolkit.org
                    </p>
              </div>
            </div>
            <div class="section">
              <div class="head">
                <h1 id="AUTHORS">AUTHORS</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>
                    <p>
                      Doug Steinwand &lt;dsteinwand@citysearch.com&gt;
                    </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-2012 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/Stash.php">Template::Stash</a>
                    </p>
              </div>
            </div>
            
            </div>
<?php include(ABS_PATH . "/footer.php"); ?>
