lltyk / tapestry-wro4j

Web Resource Optimizer integration for Tapestry 5.3
Other
12 stars 4 forks source link

file extensions #1

Open ribrewguy opened 12 years ago

ribrewguy commented 12 years ago

This is a minor request, but would it be possible to rename the resulting files? I've imported a .less file and although the less code was replaced with css the filename still displayed as .less.

lltyk commented 12 years ago

I can't think of a perfect way to do this with the tapestry api. Tapestry checks whether a file exists before the transformer gets called, so even with this change you have to create a dummy .css file that gets replaced with the contents of your .less file. I considered an AssetPathConverter but that does not seem to be the most compatible way of doing it.

ribrewguy commented 12 years ago

It's non-critical.