-
Notifications
You must be signed in to change notification settings - Fork 6
options.template
Type: String
Default value: see below
This parameter is deprecated as of 0.2.0. Use options.templateFile instead.
A string value that is used as a template to generate a sprite's CSS file.
The alternative way to supply a template is to use options.templateFile.
If both are specified at the same time, options.template
supersedes options.templateFile
.
See options.templateFile for more details.
This parameter is deprecated because grunt
always tries to interpolate all strings in config
using templates. While it is possible to retrieve a raw uninterpolated value, grunt
may fail
on missing variables even before it hits the code in this plugin making the whole process utterly
unreliable.
Switching to a different set of delimiters is possible, yet makes code unportable between
options.template
and options.templateFile. Changing delimiters for
external files, will break all existing installations.
Giving all that, and the popularity of options.templateFile, it was decided
to deprecate options.template
.