Skip to content

Commit

Permalink
Added hooks description
Browse files Browse the repository at this point in the history
  • Loading branch information
f0rmat1k committed Apr 24, 2015
1 parent ff47494 commit ddd8b57
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ Description of the used file types.
`shortcuts` — list of short that you can use after `-p` key in Task of creation;
`rename` – mask for deep renaming. {{bemNode}} will be replaced to new node name. You can also use an array of masks;
`template` — path to template of file type. Teamplate used when any files are created.
There are following placeholders: `{{blockName}}`, `{{elemName}}`, `{{modName}}`, `{{modVal}}` and `{{cursor}}`. When files are created this entries will be replaced with relevant part of BEM node name. And `{{cursor}}` will be deleted and used for setting cursor line number (see more at `Configuring` section).
There are following placeholders: `{{blockName}}`, `{{elemName}}`, `{{modName}}`, `{{modVal}}` and `{{cursor}}`. When files are created this entries will be replaced with relevant part of BEM node name. And `{{cursor}}` will be deleted and used for setting cursor line number (see more at `Configuring` section). Also you can set hook, which will be called, when file will be created. Hook-command get file path with the first argument by replacing `{{filePath}}`.

For example, default css template contain:
```
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"type": "git",
"url": "https://github.com/f0rmat1k/bemy.git"
},
"version": "3.3.0",
"version": "3.3.1",
"keywords": [
"bem",
"BEM Tools"
Expand Down

0 comments on commit ddd8b57

Please sign in to comment.