You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Pre-commit hooks to validate HTML5 pages or templates:
3
+
Pre-commit hooks requiring a `java` interpreter in the `$PATH`.
4
4
5
-
- one hook uses a regex-based NodeJS linter: https://github.com/yaniswang/HTMLHint
6
-
7
-
- another one used a [htmlparser2](https://github.com/fb55/htmlparser2)-based NodeJS linter: [htmllint](https://github.com/htmllint/htmllint/wiki/Options)
8
-
9
-
- the last one uses the v.Nu validator: http://validator.w3.org/nu/.
10
-
It requires a `java` interpreter in the `$PATH`.
11
-
12
-
This last hook can automagically replace mustaches by a default value in order to validate templates.
5
+
The `validate-html` hook uses the v.Nu validator: http://validator.w3.org/nu/.
6
+
It can automagically replace mustaches by a default value in order to validate templates.
13
7
Currently, only [handlebars](http://handlebarsjs.com) templates are supported. Please create an issue if you need support for other template engines: the ones where a Python implementation exist should be easy to add.
14
8
15
9
## Usage
16
-
17
-
For `htmlhint` & `htmllint` (this one require you to have a config file like [this default `.htmllintrc`](https://github.com/htmllint/htmllint-cli/blob/master/lib/default_cfg.json)) :
0 commit comments