xonecas.io
117
Ht

htmlKompressor / files

htmlKompressor / test / index.html

3.5 KB
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"><link rel="stylesheet" href="css/style.css?v=2"><link href='http://fonts.googleapis.com/css?family=Oswald' rel='stylesheet' type='text/css'><script src="js/libs/modernizr-1.7.min.js"></script></head><body><header><h1>Dusty Markdown</h1></header><section id="main" class="center"><blockquote>
2  <p>This project is the new content manager under <a href="http://xonecas.com">xonecas.com</a>.
3  It's very minimal and light, developer friendly. The idea 
4  is that you can write the dynamic content in markdown and
5  use dust to combine static and dynamic.</p>
6</blockquote>
7
8<h2>This app is only possible thanks to:</h2>
9
10<ul>
11<li>HTML5 Boilerplate</li>
12<li>Dust.js</li>
13<li>Markdown</li>
14</ul>
15
16<h3>The gist:</h3>
17
18<p>So the build.js file grabs the source files you write and
19compiles them into static assets (@TODO add compression 
20and concatenation). The way it knows what to do with your
21files is because it expects a specific folder/naming 
22convention.</p>
23
24<p>This app is the example of that convention:</p>
25
26<pre><code>  root/
27     build.js                // compiler
28     server.js               // static asset provider
29
30     templates/              // home to your pages/views
31        index.dust           // root of the app
32        pagename.dust        // pagename becomes 
33                             // http://server/pagename
34
35     markdown/               // where your content goes
36        keyname.md           // you can refer to this in 
37                             // your template using {keyname}
38        section_keyname.md   // you can refer to several
39                             // keynames using {#section}
40     htdocs/                 // your static content
41        ...
42        ...                  // organize it how you want it
43                             // just remember that the .html
44                             // files are created by build.js
45                             // so don't edit them by hand
46</code></pre>
47
48<p>The default htdocs folder is from HTML5 Boilerplate and so is
49the static file server. One difference is that this app uses
50Ender for the js library, but you're welcome to change it.
51There is also a very simple unique visitors/request counter.</p>
52
53<p>See the example page <a href="/about">here</a>.</p>
54
55<h2>Dependencies</h2>
56
57<ul>
58<li><code>npm install connect dust node-markdown</code></li>
59</ul>
60
61<h2>More docs:</h2>
62
63<ul>
64<li><a href="http://h5bp.com/"><em>HTML5 Boilerplate</em>  →</a></li>
65<li><a href="http://akdubya.github.com/dustjs/"><em>Dust</em>  →</a></li>
66<li><a href="http://daringfireball.net/projects/markdown/basics"><em>Markdown</em>  →</a></li>
67</ul></section><script src="//ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.js"></script><script>window.jQuery || document.write("<script src='js/libs/jquery-1.5.1.min.js'>\x3C/script>")</script><!-- scripts concatenated and minified via ant build script--><script src="js/plugins.js"></script><script src="js/script.js"></script><!-- end scripts--><!--[if lt IE 7 ]><script src="js/libs/dd_belatedpng.js"></script><script>DD_belatedPNG.fix("img, .png_bg");</script><![endif]--></body></html>