fix template not found problems on /index.html

This commit is contained in:
Sebastian Sdorra
2012-08-12 22:22:51 +02:00
parent 6134b3abbc
commit bed3015fe3

View File

@@ -238,6 +238,15 @@ public class TemplateServlet extends HttpServlet
{
path = path.concat("index.mustache");
}
else
{
int index = path.lastIndexOf('.');
if (index > 0)
{
path = path.substring(0, index).concat(".mustache");
}
}
return path;
}