From 6fd4613d0bf1bb78340e46d45b269ddd3c36f190 Mon Sep 17 00:00:00 2001 From: HumairAK Date: Wed, 27 Jul 2016 02:44:05 -0400 Subject: added compression --- .../examples/handlebars/handlebars-example.js | 39 ---------------------- .../examples/handlebars/main.handlebars | 20 ----------- .../examples/handlebars/package.json | 16 --------- 3 files changed, 75 deletions(-) delete mode 100644 node_modules/express-minify-html/examples/handlebars/handlebars-example.js delete mode 100644 node_modules/express-minify-html/examples/handlebars/main.handlebars delete mode 100644 node_modules/express-minify-html/examples/handlebars/package.json (limited to 'node_modules/express-minify-html/examples') diff --git a/node_modules/express-minify-html/examples/handlebars/handlebars-example.js b/node_modules/express-minify-html/examples/handlebars/handlebars-example.js deleted file mode 100644 index eb39a06..0000000 --- a/node_modules/express-minify-html/examples/handlebars/handlebars-example.js +++ /dev/null @@ -1,39 +0,0 @@ -'use strict'; - -var express = require('express'); -var minifyHTML = require('../../minifier.js'); -var exhbs = require('express-handlebars'); - -var app = express(); - -var hbs = exhbs.create({ - defaultLayout: 'main', - layoutsDir: './' -}); - -app.engine('handlebars', hbs.engine); -app.set('view engine', 'handlebars'); -app.set('views', './'); - -app.use(minifyHTML({ - override: true, - htmlMinifier: { - removeComments: true, - collapseWhitespace: true, - collapseBooleanAttributes: true, - removeAttributeQuotes: true, - removeEmptyAttributes: true, - minifyJS: true - } -})); - -app.get('/', function(req, res) { - res.render('main', { hello: 'world' }); -}); - -var server = app.listen(3000, function() { - var host = server.address().address; - var port = server.address().port; - - console.log('Handlebars example app listening at http://%s:%s', host, port); -}); diff --git a/node_modules/express-minify-html/examples/handlebars/main.handlebars b/node_modules/express-minify-html/examples/handlebars/main.handlebars deleted file mode 100644 index f46809e..0000000 --- a/node_modules/express-minify-html/examples/handlebars/main.handlebars +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - Express minify HTML handlebars example - - - Hello {{hello}}! - - - \ No newline at end of file diff --git a/node_modules/express-minify-html/examples/handlebars/package.json b/node_modules/express-minify-html/examples/handlebars/package.json deleted file mode 100644 index 9b6dc5e..0000000 --- a/node_modules/express-minify-html/examples/handlebars/package.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "name": "express-minify-html-handlebars-example", - "version": "0.0.1", - "description": "Handlebars.js example for this middleware", - "main": "handlebars-example.js", - "scripts": { - "test": "echo \"Error: no test specified\" && exit 1", - "start": "node handlebars-example.js" - }, - "author": "Matti Jokitulppo ", - "license": "MIT", - "dependencies": { - "express": "^4.13.3", - "express-handlebars": "^2.0.1" - } -} -- cgit v1.2.3