Couldn't you do this:
get '/' => sub { template 'index.html' };
Jonathan Otsuka
On Apr 27, 2013, at 6:56 PM, Mark Wood-Patrick <[email protected]> wrote:
> 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:
>
> http://l-sim-27-071:4080/todomvc/architecture-examples/yui
>
> rather than
>
> http://l-sim-27-071:4080/todomvc/architecture-examples/yui/index.html
>
> Mark Wood-Patrick
>
> 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.
> _______________________________________________
> dancer-users mailing list
> [email protected]
> http://lists.preshweb.co.uk/mailman/listinfo/dancer-users
_______________________________________________
dancer-users mailing list
[email protected]
http://lists.preshweb.co.uk/mailman/listinfo/dancer-users