function createControlPage() {
            var indexTemplate = grunt.file.read(templatesFolder + '/index.html');
            var cssFile = grunt.file.read(assetsFolder + '/style.css');

            if (!usei8class) {
                cssFile += '\n\n/*\n';
                cssFile += 'Additional CSS is needed to check displaying of PNG images';
                cssFile += '\n*/\n\n';
                cssFile += showPngCss;
            }

            svgflback.resultHtml = createIconsList();

            var indexData = {
                'css': cssFile,
                'svgclass': svgclass,
                'svgstyle': svgstyle,
                'resultCss': svgflback.resultCss,
                'resultSvg': svgflback.resultSvg,
                'resultHtml': svgflback.resultHtml,
                'iconsDataList': JSON.stringify(svgflback.resultIconsData)
            };

            var outputIndex = mustache.render(indexTemplate, indexData);
            grunt.file.write(destIndex, outputIndex, 'utf8');

            open(destIndex);

            grunt.log.ok('Demo page is ready.');
            grunt.log.writeln('----------------------------------');

        }
/**
         * Create page with both SVG and PNG Icons
         */
Create page with both SVG and PNG Icons
Create page with both SVG and PNG Icons
function createControlPage() {
            var indexTemplate = grunt.file.read(templatesFolder + '/index.html');
            var cssFile = grunt.file.read(assetsFolder + '/style.css');
            if (!usei8class) {
                cssFile += '\n\n/*\n';
                cssFile += 'Additional CSS is needed to check displaying of PNG images';
                cssFile += '\n*/\n\n';
                cssFile += showPngCss;
            }
            svgflback.resultHtml = createIconsList();
            var indexData = {
                'css': cssFile,
                'svgclass': svgclass,
                'svgstyle': svgstyle,
                'resultCss': svgflback.resultCss,
                'resultSvg': svgflback.resultSvg,
                'resultHtml': svgflback.resultHtml,
                'iconsDataList': JSON.stringify(svgflback.resultIconsData)
            };
            var outputIndex = mustache.render(indexTemplate, indexData);
            grunt.file.write(destIndex, outputIndex, 'utf8');
            open(destIndex);
            grunt.log.ok('Demo page is ready.');
            grunt.log.writeln('----------------------------------');
        }
function createControlPage ( ) { var indexTemplate = grunt . file . read ( templatesFolder + '/index.html' ) ; var cssFile = grunt . file . read ( assetsFolder + '/style.css' ) ; if ( ! usei8class ) { cssFile += '\n\n/*\n' ; cssFile += 'Additional CSS is needed to check displaying of PNG images' ; cssFile += '\n*/\n\n' ; cssFile += showPngCss ; } svgflback . resultHtml = createIconsList ( ) ; var indexData = { 'css' : cssFile , 'svgclass' : svgclass , 'svgstyle' : svgstyle , 'resultCss' : svgflback . resultCss , 'resultSvg' : svgflback . resultSvg , 'resultHtml' : svgflback . resultHtml , 'iconsDataList' : JSON . stringify ( svgflback . resultIconsData ) } ; var outputIndex = mustache . render ( indexTemplate , indexData ) ; grunt . file . write ( destIndex , outputIndex , 'utf8' ) ; open ( destIndex ) ; grunt . log . ok ( 'Demo page is ready.' ) ; grunt . log . writeln ( '----------------------------------' ) ; }
Create page with both SVG and PNG Icons
Create page with both SVG and PNG Icons