Finally got Karma working with external templates