, Ken Loomis <kloomis@...> wrote:
> The one thing I am missing in the process is a way to automatically
> change the files names and update the references to them in the HTML
> files so that I can make use of far future expires.
<%= ScriptSrc( "~/assets/script.js" ) %>
The ScriptSrc function takes care of resolving the relative path, choosing the minified or full script based on the DEBUG setting (or by checking for localhost), and appending a version string. So the final output could look like this:
<script src="/application/assets/script-min.js?v=12345" />
You can also use this approach to do things like load a minified combination script in production, but in DEBUG mode load the individual, full files.