MoLow / ng-node-compile

Compile html templates the angular way, in node js
14 stars 7 forks source link

cheerio #6

Closed anhoev closed 8 years ago

anhoev commented 8 years ago

Hi , can you use cheerio instead of jsdom because it is very fast .

MoLow commented 8 years ago

Hi, unfortunately angular is full of native js code, like:

document.createComment(' end ngIf: ' + $attr.ngIf + ' ')
return element[0].nodeType === NODE_TYPE_TEXT ? lowercase(elemHtml)
element.setAttribute(name, value);

and lots of other examples.. it is an option to rewrite a version of angular.js that supports server rendering, although, I want to let user select angular version, because new versions keep being published