karma-html2js-preprocessor icon indicating copy to clipboard operation
karma-html2js-preprocessor copied to clipboard

A Karma plugin. Convert HTML files into JS strings to serve them in a script tag.

Results 17 karma-html2js-preprocessor issues
Sort by recently updated
recently updated
newest added

Clarify plugin section in karma config file.

I'm not sure if this is a bug or not, but the preprocessor seems to strip backslashes from the file contents. For example, if the file contains the characters `foo...

Fixed bug that caused the path of the generated javascript file to be appended multiple times with '.js', once for each time the file was processed. This resulted in the...

If the template was not properly loaded `document.getElementById('tpl')` would return `null`. Then `expect(...).toBeDefined()` would still report a success. I changed it to `expect(...).toBeTruthy()` so it actually reports a failure if...