typesafehub/play-plugins — pull request #3 by leodagdag (2012-04-07 16:05:15+00:00)
Title: Fix for issue [Dust] Generated template doesn't work on Windows

Hello,
It's my first pull-request, so I try to not make trouble.

I made 2 changes:

1. Instead of hardcoding the replacement of assertDir + "/" by "", I drop the last character which is
* on Linux/Mac a /
* on Windows a \\

2. With the result, I replace all \\ by / to have a right path in case templates files are in a sub directory of asserts

And I move the example.tl file in assets/templates/ directory to test the case a template is not directly in asserts directory

I made the test on Windows, but unfortunately, I have no Linux or Mac environnement to test on them, i hope it works fine on all environnements

Have a nice day

F.