function writeCss(folder, coordinates) {

            var outputCss = '',
                filePath = folder + '/' + folder + '.css',
                destCssFile = dest + filePath,
                prefixIe8Template = grunt.file.read(templatesFolder + '/icon--ie8.css'),
                prefixWithFallbackTemplate = grunt.file.read(templatesFolder + '/icon--fallback.css'),
                prefixWithFallbackFillTemplate = grunt.file.read(templatesFolder + '/icon--fallback-fill.css'),
                prefixDemoPngTemplate = grunt.file.read(templatesFolder + '/icon--demopng.css'),
                prefixFillTemplate = grunt.file.read(templatesFolder + '/icon--common-fill.css'),
                iconFillTemplate = grunt.file.read(templatesFolder + '/icon--fill.css'),
                iconNoFillTemplate = grunt.file.read(templatesFolder + '/icon--no-fill.css'),
                iconBgPosTemplate = grunt.file.read(templatesFolder + '/icon--bgpos.css'),
                iconItemTemplate = grunt.file.read(templatesFolder + '/icon--item.html'),
                config = svgflback.config,
                configByFileName = svgflback.configByFileName;

            var iconsData = {};
            iconsData.spriteurl = folder + '.png';
            iconsData.spriteFullUrl = folder + '/' + folder + '.png';
            iconsData.prefix = folder;
            iconsData.icons = [];
            iconsData.color = '';

            if (config[folder] && config[folder]['color']) {
                iconsData.color = config[folder]['color'];
            }

            if (usei8class) {
                if (iconsData.color) {
                    outputCss += mustache.render(prefixFillTemplate, iconsData);
                }
                // Use template with .ie8
                outputCss += mustache.render(prefixIe8Template, iconsData);
            }
            else {
                if (iconsData.color) {
                    prefixWithFallbackTemplate = prefixWithFallbackFillTemplate;
                }
                // Use template with bacground fallback
                outputCss += mustache.render(prefixWithFallbackTemplate, iconsData);
                showPngCss += mustache.render(prefixDemoPngTemplate, iconsData);
            }

            for (var key in coordinates) {
                var iconData = getIconData(key, coordinates, folder);
                var iconTemplate = iconFillTemplate;

                if (!iconData.color) {
                    iconTemplate = iconNoFillTemplate;
                }

                outputCss += mustache.render(iconTemplate, iconData);
                showPngCss += mustache.render(iconBgPosTemplate, iconData);
                svgflback.resultHtml += mustache.render(iconItemTemplate, iconData);
                iconsData.icons.push(iconData);
            }

            for (var i = 0; i < svgflback.resultSvg.length; i++) {
                if (svgflback.resultSvg[i].name == folder && svgflback.resultSvg[i].styles) {
                    outputCss += '\n' + svgflback.resultSvg[i].styles;
                }
            }

            iconsData.icons = simsort.sortIconsToGroup(iconsData.icons);

            svgflback.resultIconsData.push({
                'folder': folder,
                'iconsData': iconsData.icons,
                'color': iconsData.color
            });

            fs.writeFileSync(destCssFile, outputCss, 'utf8');

            svgflback.resultCss.push({
                'url': filePath
            });

        }
/**
         * Write CSS for sprite to file
         * @param {Object} coordinates of created sprite
         */
Write CSS for sprite to file
@param {Object} coordinates of created sprite
Write CSS for sprite to file @param { Object } coordinates of created sprite
function writeCss(folder, coordinates) {
            var outputCss = '',
                filePath = folder + '/' + folder + '.css',
                destCssFile = dest + filePath,
                prefixIe8Template = grunt.file.read(templatesFolder + '/icon--ie8.css'),
                prefixWithFallbackTemplate = grunt.file.read(templatesFolder + '/icon--fallback.css'),
                prefixWithFallbackFillTemplate = grunt.file.read(templatesFolder + '/icon--fallback-fill.css'),
                prefixDemoPngTemplate = grunt.file.read(templatesFolder + '/icon--demopng.css'),
                prefixFillTemplate = grunt.file.read(templatesFolder + '/icon--common-fill.css'),
                iconFillTemplate = grunt.file.read(templatesFolder + '/icon--fill.css'),
                iconNoFillTemplate = grunt.file.read(templatesFolder + '/icon--no-fill.css'),
                iconBgPosTemplate = grunt.file.read(templatesFolder + '/icon--bgpos.css'),
                iconItemTemplate = grunt.file.read(templatesFolder + '/icon--item.html'),
                config = svgflback.config,
                configByFileName = svgflback.configByFileName;
            var iconsData = {};
            iconsData.spriteurl = folder + '.png';
            iconsData.spriteFullUrl = folder + '/' + folder + '.png';
            iconsData.prefix = folder;
            iconsData.icons = [];
            iconsData.color = '';
            if (config[folder] && config[folder]['color']) {
                iconsData.color = config[folder]['color'];
            }
            if (usei8class) {
                if (iconsData.color) {
                    outputCss += mustache.render(prefixFillTemplate, iconsData);
                }
                outputCss += mustache.render(prefixIe8Template, iconsData);
            }
            else {
                if (iconsData.color) {
                    prefixWithFallbackTemplate = prefixWithFallbackFillTemplate;
                }
                outputCss += mustache.render(prefixWithFallbackTemplate, iconsData);
                showPngCss += mustache.render(prefixDemoPngTemplate, iconsData);
            }
            for (var key in coordinates) {
                var iconData = getIconData(key, coordinates, folder);
                var iconTemplate = iconFillTemplate;
                if (!iconData.color) {
                    iconTemplate = iconNoFillTemplate;
                }
                outputCss += mustache.render(iconTemplate, iconData);
                showPngCss += mustache.render(iconBgPosTemplate, iconData);
                svgflback.resultHtml += mustache.render(iconItemTemplate, iconData);
                iconsData.icons.push(iconData);
            }
            for (var i = 0; i < svgflback.resultSvg.length; i++) {
                if (svgflback.resultSvg[i].name == folder && svgflback.resultSvg[i].styles) {
                    outputCss += '\n' + svgflback.resultSvg[i].styles;
                }
            }
            iconsData.icons = simsort.sortIconsToGroup(iconsData.icons);
            svgflback.resultIconsData.push({
                'folder': folder,
                'iconsData': iconsData.icons,
                'color': iconsData.color
            });
            fs.writeFileSync(destCssFile, outputCss, 'utf8');
            svgflback.resultCss.push({
                'url': filePath
            });
        }
function writeCss ( folder , coordinates ) { var outputCss = '' , filePath = folder + '/' + folder + '.css' , destCssFile = dest + filePath , prefixIe8Template = grunt . file . read ( templatesFolder + '/icon--ie8.css' ) , prefixWithFallbackTemplate = grunt . file . read ( templatesFolder + '/icon--fallback.css' ) , prefixWithFallbackFillTemplate = grunt . file . read ( templatesFolder + '/icon--fallback-fill.css' ) , prefixDemoPngTemplate = grunt . file . read ( templatesFolder + '/icon--demopng.css' ) , prefixFillTemplate = grunt . file . read ( templatesFolder + '/icon--common-fill.css' ) , iconFillTemplate = grunt . file . read ( templatesFolder + '/icon--fill.css' ) , iconNoFillTemplate = grunt . file . read ( templatesFolder + '/icon--no-fill.css' ) , iconBgPosTemplate = grunt . file . read ( templatesFolder + '/icon--bgpos.css' ) , iconItemTemplate = grunt . file . read ( templatesFolder + '/icon--item.html' ) , config = svgflback . config , configByFileName = svgflback . configByFileName ; var iconsData = { } ; iconsData . spriteurl = folder + '.png' ; iconsData . spriteFullUrl = folder + '/' + folder + '.png' ; iconsData . prefix = folder ; iconsData . icons = [ ] ; iconsData . color = '' ; if ( config [ folder ] && config [ folder ] [ 'color' ] ) { iconsData . color = config [ folder ] [ 'color' ] ; } if ( usei8class ) { if ( iconsData . color ) { outputCss += mustache . render ( prefixFillTemplate , iconsData ) ; } outputCss += mustache . render ( prefixIe8Template , iconsData ) ; } else { if ( iconsData . color ) { prefixWithFallbackTemplate = prefixWithFallbackFillTemplate ; } outputCss += mustache . render ( prefixWithFallbackTemplate , iconsData ) ; showPngCss += mustache . render ( prefixDemoPngTemplate , iconsData ) ; } for ( var key in coordinates ) { var iconData = getIconData ( key , coordinates , folder ) ; var iconTemplate = iconFillTemplate ; if ( ! iconData . color ) { iconTemplate = iconNoFillTemplate ; } outputCss += mustache . render ( iconTemplate , iconData ) ; showPngCss += mustache . render ( iconBgPosTemplate , iconData ) ; svgflback . resultHtml += mustache . render ( iconItemTemplate , iconData ) ; iconsData . icons . push ( iconData ) ; } for ( var i = 0 ; i < svgflback . resultSvg . length ; i ++ ) { if ( svgflback . resultSvg [ i ] . name == folder && svgflback . resultSvg [ i ] . styles ) { outputCss += '\n' + svgflback . resultSvg [ i ] . styles ; } } iconsData . icons = simsort . sortIconsToGroup ( iconsData . icons ) ; svgflback . resultIconsData . push ( { 'folder' : folder , 'iconsData' : iconsData . icons , 'color' : iconsData . color } ) ; fs . writeFileSync ( destCssFile , outputCss , 'utf8' ) ; svgflback . resultCss . push ( { 'url' : filePath } ) ; }
Write CSS for sprite to file
 @param {Object} coordinates of created sprite
Write CSS for sprite to file @param { Object } coordinates of created sprite
// Use template with .ie8 // Use template with bacground fallback