tasks/webfont.js
function generateDemoHtml(done) {
			if (!o.htmlDemo) {
				done();
				return;
			}

			var context = prepareHtmlTemplateContext();

			// Generate HTML
			var demoTemplate = readTemplate(o.htmlDemoTemplate, 'demo', '.html');
			var demo = renderTemplate(demoTemplate, context);

			mkdirp(getDemoPath(), function(err) {
				if (err) {
					logger.log(err);
					return;
				}
				// Save file
				fs.writeFileSync(getDemoFilePath(), demo);
				done();
			});

		}
function generateDemoHtml(done) {
			if (!o.htmlDemo) {
				done();
				return;
			}

			var context = prepareHtmlTemplateContext();

			// Generate HTML
			var demoTemplate = readTemplate(o.htmlDemoTemplate, 'demo', '.html');
			var demo = renderTemplate(demoTemplate, context);

			mkdirp(getDemoPath(), function(err) {
				if (err) {
					logger.log(err);
					return;
				}
				// Save file
				fs.writeFileSync(getDemoFilePath(), demo);
				done();
			});

		}
function generateDemoHtml ( done ) { if ( ! o . htmlDemo ) { done ( ) ; return ; } var context = prepareHtmlTemplateContext ( ) ; // Generate HTML var demoTemplate = readTemplate ( o . htmlDemoTemplate , 'demo' , '.html' ) ; var demo = renderTemplate ( demoTemplate , context ) ; mkdirp ( getDemoPath ( ) , function ( err ) { if ( err ) { logger . log ( err ) ; return ; } // Save file fs . writeFileSync ( getDemoFilePath ( ) , demo ) ; done ( ) ; } ) ; }
Generate HTML demo page

@param {Function} done
Generate HTML demo page