karma-ng-html2js-preprocessor
karma-ng-html2js-preprocessor copied to clipboard
A Karma plugin. Compile AngularJS 1.x and 2.x templates to JavaScript on the fly.
Currently in log i have information that some files was processed. I want to see unter whic module are these files exported. Now: DEBUG [preprocessor.html2js]: Processing "/home/view/directive.html". Proposal: DEBUG [preprocessor.html2js]:...
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...
Tried wrapping my head around the coffescript tests, but couldn't come up with anything useful. Help appreciated =)
I think it would be useful to provide something like `templateWrapper` option, which will be able to wrap the output, it would make it possible to simplify generation of RequireJS/SystemJS/etc....
When issuing a HTTP GET with arguments: Ex. myapp/index.html?v=1.0 it fails with error: ``` Error: Unexpected request: GET myapp/index.html?v=1.0 adding a prependSufix in createHtml2JsPreprocessor fixes this: ...createHtml2JsPreprocessor ... { ......
in this commit there is a TODO with the intention to remove registering as html2js https://github.com/karma-runner/karma-ng-html2js-preprocessor/commit/1d3cb4d1c973e35a7653d51833c0e173cf5739bb It'd be really nice to make that a TODONE :) as it conflicts with...
Hello, I lost some time because I forgot to install this node mode (but using it in Karma). The error was misleading because I saw in Karma logs: PhantomJS 1.9.2...
For most text encodings, **ng-html2js** will produce an entry in the template cache containing a properly encoded string. However, I found in the past that when using templates encoded with...
Hi, Unless I'm missing something, I can't seem to get absolute paths for my templates. Both prependPrefix and cacheIdFromPath strips the initial `/`. I'm using Angular in some Drupal modules...