Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge branch 'docs-directives' of https://github.com/scottgonzalez/grunt

 into wip

* 'docs-directives' of https://github.com/scottgonzalez/grunt:
  Docs: grunt.file.parseJSON -> grunt.file.readJSON; add section links.

Conflicts:
	docs/helpers_directives.md
  • Loading branch information...
commit dac618369accdb3914c6a28c951e5750b2f5f364 2 parents f7c088a + 8c71509
@cowboy authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 docs/helpers_directives.md
View
6 docs/helpers_directives.md
@@ -13,15 +13,15 @@ Take a look at the [built-in tasks source code](../tasks) for more examples.
Expands to the value of the `prop.subprop` config property. This can be any number of objects deep, `prop.subprop.otherprop.whatever` is totally valid. Great for DRYing up file lists.
### `<json:file.json>` <a name="json-file-json" href="#json-file-json" title="Link to this section">#</a>
-Expand to the object parsed from file.json via [grunt.file.parseJSON](api_file.md).
+Expand to the object parsed from file.json via [grunt.file.readJSON](api_file.md#grunt-file-readjson).
### `<banner:prop.subprop>` <a name="banner-prop-subprop" href="#banner-prop-subprop" title="Link to this section">#</a>
-Expand to the string in config property `prop.subprop`, parsed via [grunt.template.process](api_template.md), using `<% %>` delimiters. If the config property isn't specified like `<banner>`, defaults to the `meta.banner` property.
+Expand to the string in config property `prop.subprop`, parsed via [grunt.template.process](api_template.md#grunt-template-process), using `<% %>` delimiters. If the config property isn't specified like `<banner>`, defaults to the `meta.banner` property.
### `<file_strip_banner:file.js>` <a name="file-strip-banner-file-js" href="#file-strip-banner-file-js" title="Link to this section">#</a>
Expand to the given file, with any leading `/*...*/` banner (excluding `/*!...*/` comments) stripped. Flags can be passed to instruct which banners to strip. The `line` flag (eg. `<file_strip_banner:file.js:line>`) will remove a contiguous block of leading `//` line comments, while the `block` flag (eg. `<file_strip_banner:file.js:block>`) will strip _all_ block comments.
### `<file_template:file.js>` <a name="file-template-file-js" href="#file-template-file-js" title="Link to this section">#</a>
-Expand to the given file, parsed as a template via [grunt.template.process](api_template.md), using `<% %>` delimiters.
+Expand to the given file, parsed as a template via [grunt.template.process](api_template.md#grunt-template-process), using `<% %>` delimiters.
Take a look at the [api documentation](api.md) and [example Gruntfiles](example_gruntfiles.md) for directive creation and usage examples.
Please sign in to comment.
Something went wrong with that request. Please try again.