xonecas.io
818
Du

dustymarkdown / commit 0983b4e

updated modules

xonecas2011-06-04 0983b4e51e56f203db914091b5616588a783cddc parent b467f89

4 files changed

node_modules/htmlKompressor/lib/kompressor.js+8−5
@@ -19,14 +19,17 @@ module.exports = function (source, noComments) {
1919 var end = line.match(/<\/pre>/);
2020 if (end && end.index > start.index)
2121 line = line.replace(/\s+$/, "");
22- else
22+ else {
23+ line += "\n";
2324 insidePre = true;
25+ }
2426 }
25- else if (line !== "") { // no pre, don't parse blank lines.
27+ else { // no pre
2628 line = line.trim();
27- line = line.replace(/\s+/g, " "); // condense spaces
28- line += " "; // separate what would be 2 lines with a space
29- // so that we don't mangle content.
29+ if (line !== "") { //don't parse blank lines.
30+ line = line.replace(/\s+/g, " "); // condense spaces
31+ line += " "; // separate what would be 2 lines with a space
32+ } // so that we don't mangle content.
3033 }
3134 }
3235 else { // inside pre tag
node_modules/htmlKompressor/package.json+1−1
@@ -1,7 +1,7 @@
11 {
22 "name": "htmlKompressor",
33 "description": "Node.js Module for compressing html files",
4- "version": "0.0.4",
4+ "version": "0.0.6",
55 "main": "lib/kompressor.js",
66 "homepage": "https://github.com/xonecas/htmlKompressor",
77 "repository": {
static/about.html+1−1
@@ -1 +1 @@
1-<!doctype html><html class="no-js" lang="en"><head><meta charset="utf-8"><title>Dusty Markdown</title><meta name="description" content="simple command line content manager"><meta name="author" content="@xonecas"><meta name="viewport" content="width=device-width, initial-scale=1.0"><link rel="shortcut icon" href="/favicon.ico"><link rel="apple-touch-icon" href="/apple-touch-icon.png"><link rel="stylesheet" href="css/style.css?v=2"><link href='http://fonts.googleapis.com/css?family=Oswald' rel='st …
1+<!doctype html> <html class="no-js" lang="en"> <head> <meta charset="utf-8"> <title>Dusty Markdown</title> <meta name="description" content="simple command line content manager"> <meta name="author" content="@xonecas"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="shortcut icon" href="/favicon.ico"> <link rel="apple-touch-icon" href="/apple-touch-icon.png"> <link rel="stylesheet" href="css/style.css?v=2"> <link href='http://fonts.googleapis.com/css?family=Oswa …
static/index.html+2−2
@@ -1,4 +1,4 @@
1-<!doctype html><!--[if lt IE 9 ]><html class="no-js oldie" lang="en"><![endif]--><!--[if (gte IE 9)|!(IE)]><!--> <html class="no-js" lang="en"> <!--<![endif]--><head><meta charset="utf-8"><title>Dusty Markdown</title><meta name="description" content="simple command line content manager"><meta name="author" content="@xonecas"><meta name="viewport" content="width=device-width, initial-scale=1.0"><link rel="shortcut icon" href="/favicon.ico"><link rel="apple-touch-icon" href="/apple-touch-icon.png" …
1+<!doctype html> <!--[if lt IE 9 ]> <html class="no-js oldie" lang="en"> <![endif]--> <!--[if (gte IE 9)|!(IE)]> <!--> <html class="no-js" lang="en"> <!-- <![endif]--> <head> <meta charset="utf-8"> <title>Dusty Markdown</title> <meta name="description" content="simple command line content manager"> <meta name="author" content="@xonecas"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="shortcut icon" href="/favicon.ico"> <link rel="apple-touch-icon" href="/apple-t …
22 build.js // compiler
33 server.js // static asset provider
44
@@ -18,4 +18,4 @@
1818 // just remember that the .html
1919 // files are created by build.js
2020 // so don't edit them by hand
21-</code></pre><p>The default htdocs folder is from HTML5 Boilerplate and so isthe static file server. One difference is that this app usesEnder for the js library, but you're welcome to change it.There is also a very simple unique visitors/request counter.</p><p>See the example page <a href="/about">here</a>.</p><h2>Dependencies</h2><ul><li><code>npm install connect dust node-markdown</code></li></ul><h2>More docs:</h2><ul><li><a href="http://h5bp.com/"><em>HTML5 Boilerplate</em> →</a></li><li> …
21+</code></pre><p>The default htdocs folder is from HTML5 Boilerplate and so is the static file server. One difference is that this app uses Ender for the js library, but you're welcome to change it. There is also a very simple unique visitors/request counter.</p> <p>See the example page <a href="/about">here</a>.</p> <h2>Dependencies</h2> <ul> <li><code>npm install connect dust node-markdown</code></li> </ul> <h2>More docs:</h2> <ul> <li><a href="http://h5bp.com/"><em>HTML5 Boilerplate</em> →</ …