rstacruz/sinatra-assetpack — pull request #126 by n8agrin (2013-07-26 22:42:24+00:00)
Title: Add filename option to render so templates can have access.

In Sinatra, the file argument passed to a Tilt Template is usually a path to the calling Ruby file, not the name of the template file. This makes it impossible to reuse the filename when outputting the compiled template. For example, when precompiling Handlebars templates it would be nice to be able to automatically namespace them in JavaScript based on their filename. This change adds an option to pass the filename.