<div dir="ltr">If the index.html is a static file, you will have to serve it from your public directory and then use the trick described here: <a href="http://modernperlbooks.com/mt/2011/08/serving-a-local-directory-with-plack.html">http://modernperlbooks.com/mt/2011/08/serving-a-local-directory-with-plack.html</a><div>
<br></div><div style>HTH</div><div style><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Apr 28, 2013 at 11:02 AM, Mark Wood-Patrick <span dir="ltr">&lt;<a href="mailto:mwoodpatrick@gmail.com" target="_blank">mwoodpatrick@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="EN-US" link="blue" vlink="purple"><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">I need to display index.html for any subdirectory where that file exists not just the root<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Mark<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p><div><div style="border:none;border-top:solid #e1e1e1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">From:</span></b><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;"> <a href="mailto:dancer-users-bounces@dancer.pm" target="_blank">dancer-users-bounces@dancer.pm</a> [mailto:<a href="mailto:dancer-users-bounces@dancer.pm" target="_blank">dancer-users-bounces@dancer.pm</a>] <b>On Behalf Of </b>Jonathan Otsuka<br>
<b>Sent:</b> Saturday, April 27, 2013 5:00 PM<br><b>To:</b> Perl Dancer users mailing list<br><b>Subject:</b> Re: [dancer-users] Automating loading of index.html<u></u><u></u></span></p></div></div><div><div class="h5"><p class="MsoNormal">
<u></u> <u></u></p><div><p class="MsoNormal">Couldn&#39;t you do this:<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">get &#39;/&#39; =&gt; sub { template &#39;index.html&#39; };<br>
<br>Jonathan Otsuka<u></u><u></u></p></div><div><p class="MsoNormal" style="margin-bottom:12.0pt"><br>On Apr 27, 2013, at 6:56 PM, Mark Wood-Patrick &lt;<a href="mailto:mwoodpatrick@nvidia.com" target="_blank">mwoodpatrick@nvidia.com</a>&gt; wrote:<u></u><u></u></p>
</div><blockquote style="margin-top:5.0pt;margin-bottom:5.0pt"><div><div><p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">Is there a way to be able to tell Dancer to load and index.html file automatically if it exists so be able to specify:<u></u><u></u></span></p>
</div><div><p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;"> <u></u><u></u></span></p></div><div><p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">        <a href="http://l-sim-27-071:4080/todomvc/architecture-examples/yui" target="_blank">http://l-sim-27-071:4080/todomvc/architecture-examples/yui</a><u></u><u></u></span></p>
</div><div><p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;"> </span><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;"><u></u><u></u></span></p>
</div><div><p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">rather than<u></u><u></u></span></p></div><div><p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;"> <u></u><u></u></span></p>
</div><div><p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">        <a href="http://l-sim-27-071:4080/todomvc/architecture-examples/yui/index.html" target="_blank">http://l-sim-27-071:4080/todomvc/architecture-examples/yui/index.html</a> <u></u><u></u></span></p>
</div><div><p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;"> </span><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;"><u></u><u></u></span></p>
</div><div><p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">Mark Wood-Patrick <u></u><u></u></span></p></div><div><p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;"> </span><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;"><u></u><u></u></span></p>
</div><div><div class="MsoNormal" align="center" style="text-align:center"><hr size="2" width="100%" align="center"></div></div><div><p class="MsoNormal">This email message is for the sole use of the intended recipient(s) and may contain confidential information.  Any unauthorized review, use, disclosure or distribution is prohibited.  If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. <u></u><u></u></p>
</div><div><div class="MsoNormal" align="center" style="text-align:center"><hr size="2" width="100%" align="center"></div></div></div></blockquote><blockquote style="margin-top:5.0pt;margin-bottom:5.0pt"><div><p class="MsoNormal">
_______________________________________________<br>dancer-users mailing list<br><a href="mailto:dancer-users@dancer.pm" target="_blank">dancer-users@dancer.pm</a><br><a href="http://lists.preshweb.co.uk/mailman/listinfo/dancer-users" target="_blank">http://lists.preshweb.co.uk/mailman/listinfo/dancer-users</a><u></u><u></u></p>
</div></blockquote></div></div></div></div><br>_______________________________________________<br>
dancer-users mailing list<br>
<a href="mailto:dancer-users@dancer.pm">dancer-users@dancer.pm</a><br>
<a href="http://lists.preshweb.co.uk/mailman/listinfo/dancer-users" target="_blank">http://lists.preshweb.co.uk/mailman/listinfo/dancer-users</a><br>
<br></blockquote></div><br></div>