-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request: html templates support #2
Comments
Hi Emanuele, Well today is the first I had heard of 'angularjs' ;=)) But I have started to 'look' at it... interesting... For now I have added the 'Feature' label to your post... It does not seem like too much of a problem noting the Tidy does very little to the content of a script... But you mean if type/ng-template is noted the contents But I note a few other things, like - triggers a warning of 'proprietary attribute'<a ng-click="foo"... also warns 'proprietary'... Do you have, or could you give me a full list of ALL the
ng-???? attributes, and hopefully that would include what 'tags' can carry these additional attributes... And so far I have scraped together a few very minimal And hopefully explaining what yo expect. Anyway, for sure I will continue to look into what it would Regards, |
Thank you very much! Regarding the tidy of template sections, yes, you got it right. Consider that in my last app the 90% of the html code is inside template sections. And being them wrapped between script tags, tidy only finds javascript errors, like:
skipping the the other html ones like
Regarding ng-attributes istead, I'm not sure they must be excluded a priory because, if I recall correctly, they aren't still supported by the official html5 standards. To make them standard compliant it's simple: just put the data- attribute in front of them (with angular, at least) |
Hi Emanuele, Re: ng-attributes Not so sure about W3C 'official' position, And they have a page listing the AngularJS And thanks for the information about adding But at the moment the one thing I can not find |
Thank, really, really kind! I like and approve your solutions 👍 Here it is the official angular doc about templates (to be honest I couldn't find it on w3schools too): |
Unfortunately NOT so kind ;=() Concerning the script templates, while I at Inside the script handling I would have So, while I will think about it some more, And further, to quote from another contributor - "Just because they are named W3Schools does not That certainly reduced my initial enthusiasm... And he added another idea about the 'proprietary' "My first guess is that, instead of micro-managing That seems a reasonable way to go, and will ponder Sorry, this is not getting very far at this time... Regards, |
I there! I'm expecting this problem...
Using angularjs I need to embed html templates like this:
Tidy process the html content it as if it would be javascript code instead of html (or 'ng-template')... could you fix this somehow? For example discriminating between "text/ng-template" and "text/javascript" strings...
Thank you in advance
The text was updated successfully, but these errors were encountered: