title: Why can't my Catalyst application read my Template Toolkit files?
body: <p>I am trying to get the <a href="http://catalystframework.org" rel="nofollow noreferrer"><code>Catalyst</code></a> framework to work using <a href="http://template-toolkit.org" rel="nofollow noreferrer"><code>Template Toolkit</code></a>, and I'm having issues with <a href="http://search.cpan.org/perldoc/Template::Provider" rel="nofollow noreferrer"><code>Template::Provider</code></a>. I've isolated the issue to calls to <code>stat</code>. In <code>Template::Provider::_init</code>, calls to <code>stat</code> work correctly, however in other functions calls to stat return []. It seems like <a href="http://search.cpan.org/perldoc/Template::Provider" rel="nofollow noreferrer"><code>Template::Provider</code></a> is doing some weird caching stuff, but I can't quite figure out what. Anyone have any ideas?</p>
  
  <p><strong>EDIT:</strong> A bit more detail:</p>
  
  <p>I'm trying to move from the Catalyst development server to Apache/mod_perl. I get a <code>Couldn't render template "file error - mytemplate.tt: not found"</code> error. Here is the debug dump of my config:</p>
  
  <pre><code>Config
  do {
    my $a = {
      "Action::RenderView" =&gt; {
            ignore_classes =&gt; [
                                "DBIx::Class::ResultSource::Table",
                                "DBIx::Class::ResultSourceHandle",
                                "DateTime",
                              ],
            scrubber_func  =&gt; sub { "???" },
          },
      "Plugin::ConfigLoader" =&gt; {},
      home =&gt; "/home/myuser/pathtosite",
      name =&gt; "Stream",
      root =&gt; bless({
            dirs =&gt; ["", "home", "myuser", "pathtosite"],
            file_spec_class =&gt; undef,
            volume =&gt; "",
          }, "Path::Class::Dir"),
      static =&gt; {
            debug =&gt; 1,
            dirs =&gt; [],
            ignore_dirs =&gt; [],
            ignore_extensions =&gt; ["tmpl", "tt", "tt2", "html", "xhtml"],
            include_path =&gt; ['fix'],
            mime_types =&gt; {},
            mime_types_obj =&gt; bless({}, "MIME::Types"),
            no_logs =&gt; 1,
          },
    };
    $a-&gt;{static}{include_path}[0] = $a-&gt;{root};
    $a;
  }
  </code></pre>
  
  <p>Pretty much the exact same issue that someone described here: <a href="http://www.gossamer-threads.com/lists/catalyst/users/14888" rel="nofollow noreferrer">http://www.gossamer-threads.com/lists/catalyst/users/14888</a></p>