Closed getdave closed 10 years ago
I'm trying to use the index option to specify a custom index.html template. However it doesn't appear to be picking this up.
index
index.html
My config:
// Pattern library patternprimer: { options: { wwwroot: 'prototype', src: 'prototype/source/patterns', dest: 'prototype/build', css: ['source/css/master.css'], index: 'prototype/source/index.html' }, live: { ports: [7020, 7030], }, snapshot: { snapshot: true } },
I believe you are using index and frame interchangeably which could be the issue.
frame
https://github.com/asciidisco/grunt-patternprimer/blob/master/tasks/patternprimer.js#L147
In addition the replacement of {{css}} with a css file doesn't work on custom index.html templates either.
{{css}}
Fixed in v.0.1.1, al your observations where correct by the way. Thanks for pointing this out in so much details.
@asciidisco Not a problem at all. Glad you managed to get this fixed. Great work!
I'm trying to use the
index
option to specify a customindex.html
template. However it doesn't appear to be picking this up.My config:
I believe you are using
index
andframe
interchangeably which could be the issue.https://github.com/asciidisco/grunt-patternprimer/blob/master/tasks/patternprimer.js#L147
In addition the replacement of
{{css}}
with a css file doesn't work on customindex.html
templates either.