Skip to content

options.templateParams

Eugene Lazutkin edited this page Mar 13, 2014 · 4 revisions

Type: Object

Default value: {}

This is a way to pass additional parameters to a template engine. While grunt allows to use arbitrary JavaScript, which can be used to generate a template with predetermined static inclusions (see options.template), this option is more useful to pass parameters to a template specified as an external file (see options.templateFile).

An object will be passed to a template as params variable.

Clone this wiki locally