Closed russellsamora closed 10 years ago
@teemualap
Ok, I'll look into this. For now you can just pass an empty object as the first argument.
@sindresorhus: ok to assume that the data argument can be ignored if file.data is populated?
Oh, I see it now. You're using it wrong. Should be:
.pipe(template(null, {
interpolate: /{{([\s\S]+?)}}/g,
evaluate: /{=([\s\S]+?)=}/g
}))
Yes, in respect of the plugin api, that's how it should be used.
Thanks fellas, works like a charm.
Goal is to use gulp-data in conjunction with template options to render template:
When using gulp data with NO options it works (verifying data works):
When using options with hard coded data it works (verifying options works):
Is there some variable that has to be passed in the template function to reference the data?