{"action":"created","issue":{"url":"https://api.github.com/repos/yaniswang/grunt-htmlhint/issues/9","labels_url":"https://api.github.com/repos/yaniswang/grunt-htmlhint/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/yaniswang/grunt-htmlhint/issues/9/comments","events_url":"https://api.github.com/repos/yaniswang/grunt-htmlhint/issues/9/events","html_url":"https://github.com/yaniswang/grunt-htmlhint/issues/9","id":35233831,"number":9,"title":"Feature Request: being able to pass it a list of url's","user":{"login":"branneman","id":172579,"avatar_url":"https://avatars.githubusercontent.com/u/172579?v=3","gravatar_id":"","url":"https://api.github.com/users/branneman","html_url":"https://github.com/branneman","followers_url":"https://api.github.com/users/branneman/followers","following_url":"https://api.github.com/users/branneman/following{/other_user}","gists_url":"https://api.github.com/users/branneman/gists{/gist_id}","starred_url":"https://api.github.com/users/branneman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/branneman/subscriptions","organizations_url":"https://api.github.com/users/branneman/orgs","repos_url":"https://api.github.com/users/branneman/repos","events_url":"https://api.github.com/users/branneman/events{/privacy}","received_events_url":"https://api.github.com/users/branneman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2014-06-08T11:21:12Z","updated_at":"2015-04-01T04:42:46Z","closed_at":null,"body":"Since a lot of people are using grunt to validate source code —and not built files, such as minified javascript— it would be nice if grunt-htmlhint would also support linting url's, instead of only files.\r\n\r\nSay you're using a local node.js server with a template engine like [Swig](http://paularmstrong.github.io/swig/), and you'd want to check your html **before** the build, so you can fail the build if necessary. Like refusing to optimize [require.js](http://requirejs.org/) with [r.js](https://github.com/jrburke/r.js) if there are [JSHint](http://www.jshint.com/) errors. [frntndr](https://github.com/branneman/frntndr) is an example of such a project. Who has the full html for a single page inside one file nowadays?\r\n\r\nFor this to work, I'd be nice if grunt-htmlhint could validate url's as well. Since running htmlhint over swig files will naturally fail, there needs to be a way of validating combined html from several template files. Like the [grunt-htmllint-http](https://github.com/branneman/grunt-htmllint-http) plugin does. But ideally you wouldn't want another grunt plugin for that if you ask me.\r\n\r\nI could see an example config like this:\r\n```js\r\nhtmlhint: {\r\n  options: {\r\n    'tag-pair': true\r\n  },\r\n  dist: {\r\n    src: [\r\n      'http://localhost/',\r\n      'http://localhost/articles.html'\r\n    ]\r\n  }\r\n}\r\n```\r\n\r\nBut this is of course only a proposal, maybe a different way of specifying url's makes more sense?\r\n\r\nEdit: I could help with the development of this feature, if you agree this would be a nice addition."},"comment":{"url":"https://api.github.com/repos/yaniswang/grunt-htmlhint/issues/comments/88347682","html_url":"https://github.com/yaniswang/grunt-htmlhint/issues/9#issuecomment-88347682","issue_url":"https://api.github.com/repos/yaniswang/grunt-htmlhint/issues/9","id":88347682,"user":{"login":"poppinlp","id":1970625,"avatar_url":"https://avatars.githubusercontent.com/u/1970625?v=3","gravatar_id":"","url":"https://api.github.com/users/poppinlp","html_url":"https://github.com/poppinlp","followers_url":"https://api.github.com/users/poppinlp/followers","following_url":"https://api.github.com/users/poppinlp/following{/other_user}","gists_url":"https://api.github.com/users/poppinlp/gists{/gist_id}","starred_url":"https://api.github.com/users/poppinlp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/poppinlp/subscriptions","organizations_url":"https://api.github.com/users/poppinlp/orgs","repos_url":"https://api.github.com/users/poppinlp/repos","events_url":"https://api.github.com/users/poppinlp/events{/privacy}","received_events_url":"https://api.github.com/users/poppinlp/received_events","type":"User","site_admin":false},"created_at":"2015-04-01T04:42:46Z","updated_at":"2015-04-01T04:42:46Z","body":"@yaniswang \r\nWish if there will be a option for ignore some templates content and let htmlhint pass.\r\nBecause it might be too heavy to run webdriver only for some template syntax and variables."}}