Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,16 @@ grunt-htmlhint-inline

[![Build Status](https://travis-ci.org/kazu69/grunt-htmlhint-inline.svg?branch=master)](https://travis-ci.org/kazu69/grunt-htmlhint-inline)

[![NPM](https://nodei.co/npm/grunt-htmlhint-inline.png)](https://nodei.co/npm/grunt-htmlhint-inline/)
[![npm](https://nodei.co/npm/grunt-htmlhint-inline.png)](https://nodei.co/npm/grunt-htmlhint-inline/)

This plug-in template files of view ( for example ```.erb``` , etc.) or , you can linting using [htmlhint](https://github.com/yaniswang/HTMLHint) the html of the old type of ```php``` (view and logic are not separated ).
This plug-in template files of view ( for example ```.erb``` , etc.) or , you can linting using [htmlhint](https://github.com/htmlhint/HTMLHint) the html of the old type of ```php``` (view and logic are not separated ).
Removes the specific embedded code , it is intended to run the htmlhint as pure html.

## Getting Started

This plugin requires Grunt `~0.4.5`

If you haven't used [Grunt](http://gruntjs.com/) before, be sure to check out the [Getting Started](http://gruntjs.com/getting-started) guide, as it explains how to create a [Gruntfile](http://gruntjs.com/sample-gruntfile) as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:
If you haven't used [Grunt](https://gruntjs.com/) before, be sure to check out the [Getting Started](https://gruntjs.com/getting-started) guide, as it explains how to create a [Gruntfile](https://gruntjs.com/sample-gruntfile) as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:

```shell
npm install grunt-htmlhint-inline --save-dev
Expand All @@ -26,6 +27,7 @@ grunt.loadNpmTasks('grunt-htmlhint-inline');
## The "htmlhint-inline" task

### Overview

In your project's Gruntfile, add a section named `htmlhint-inline` to the data object passed into `grunt.initConfig()`.

```js
Expand All @@ -47,6 +49,7 @@ grunt.initConfig({
### Options

#### htmlhintrc

Type: String Default value: null

```htmlhintrc``` file must be a valid JSON.
Expand All @@ -60,6 +63,7 @@ If there is specified in the task options, the options in this file will be over
```

#### patterns

Type: Array Default: []

Enable the replacement by the pattern
Expand Down Expand Up @@ -111,6 +115,7 @@ grunt.initConfig({
}
});
```

## License

MIT