UNPKG

1.02 kBMarkdownView Raw
1[Grunt homepage](https://github.com/cowboy/grunt) | [Documentation table of contents](toc.md)
2
3# Helpers and Directives
4
5## Built-in Helpers
6EXPLAIN
7
8Take a look at the [built-in tasks source code](../tasks) for more examples.
9
10## Built-in Directives
11
12* `<config:prop.subprop>` - expand to 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.
13* `<json:file.json>` - expand to the object parsed from file.json via [grunt.file.parseJSON](api_file.md).
14* `<banner>` - the string in config property `meta.banner`, parsed via [grunt.template.process](api_template.md), using `<% %>` delimiters.
15* `<banner:prop.subprop>` - same as above, but using a custom config property.
16* `<file_strip_banner:file.js>` - expand to the given file, with any leading `/*...*/` banner stripped.
17
18Take a look at the [api documentation](api.md) and [example gruntfiles](example_gruntfiles.md) for directive creation and usage examples.