junmer / html2js

simple html2js processer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

html2js failing to compile

pallix opened this issue · comments

Hello,

I got an error when trying to use html2js:

Running "html2js:common" (html2js) task
Warning: src/app/common/directives/breadcrumb/breadcrumb-entry.tpl.html
TypeError: Cannot call method 'trim' of undefined Use --force to continue.

Aborted due to warnings.

The content of the file can be found at:

https://github.com/carneades/carneades/blob/master/src/CarneadesWeb/client/src/_app/common/directives/breadcrumb/breadcrumb-entry.haml

grunt --version
grunt-cli v0.1.13
grunt v0.4.5

@pallix
I test your file:

define(function () {return '%li{"class" => "bc-default-a"}\n  %a{"ng-click" => "openView(state.name, state.params)", "tooltip" => "{{state.tooltip}}", "tooltip-append-to-body" => "true", "tooltip-placement" => "bottom"}\n    {{state.label}}\n  \n';});

if you use grunt, maybe you should see grunt-html2js

Ok I thing I miscorrectly identified the problem. There is a bug in the npm html-minifier. kangax/html-minifier#172 Thank you.