node-sprite-generator icon indicating copy to clipboard operation
node-sprite-generator copied to clipboard

Fails to render custom template... template file name is contents of output stylesheet

Open knightcode opened this issue 6 years ago • 4 comments

For each template type, lib/stylesheet/index.js calls getTemplatedStylesheet once passing in the contents of a file for the respective built in template, and getTemplatedStylesheet then returns a function that is used as renderStylesheet in nsg.js.

However, when using a custom template file,getTemplatedStylesheet is passed the filename instead of the contents of the file.

knightcode avatar Sep 26 '17 15:09 knightcode