pepite/play--pdf — pull request #21 by vuvarov (2011-12-19 01:05:24+00:00)
Title: Fix for file name check for .pdf templates when request.format=pdf

There was an issue in `PDF.resolveTemplateName()` where it wasn't able to find existing .pdf templates using `Play.getVirtualFile()` when `request.format` was set to "pdf" by the caller. So, it was always falling back to .html for template file name.

#### Example

When you have the following templates:

* app/views/Application/test.html
* app/views/Application/test.pdf

... and have a controller method:

```
public static void test() {
request.format = "pdf";
renderPDF();
}
```
... test.pdf template wouldn't be used.