karma-runner/karma-ng-html2js-preprocessor — pull request #39 by bazsi (2014-08-05 09:43:25+00:00)
Title: html2js: add templatePathReplaces attribute for renaming template paths

This patch implements another config option to the html2js preprocessor,
namely it allows the user to transform paths via a list of regexps,
instead of passing the cacheIdFromPath callback.

The reason passing that callback is complicated is that it already
has some functionality (prependPrefix and stripPrefix), which would have
to be reimplemented in the user supplied callback, which is further
complicated by the fact that those are stored in the closure hidden from
the callback function.

Signed-off-by: Adam Golya
Signed-off-by: Balazs Scheidler